feat: Add haptic feedback for number, decimal, and backspace
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -554,6 +554,7 @@ function buttonPress(val) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'B':
|
case 'B':
|
||||||
|
Bangle.buzz();
|
||||||
if (isDecimal) {
|
if (isDecimal) {
|
||||||
isDecimal = false;
|
isDecimal = false;
|
||||||
displayOutput(currNumber);
|
displayOutput(currNumber);
|
||||||
@@ -584,6 +585,7 @@ function buttonPress(val) {
|
|||||||
if (swipeEnabled) drawNumbers();
|
if (swipeEnabled) drawNumbers();
|
||||||
break;
|
break;
|
||||||
case '.':
|
case '.':
|
||||||
|
Bangle.buzz();
|
||||||
specials.R.val = 'C';
|
specials.R.val = 'C';
|
||||||
if (!swipeEnabled) drawKey('R', specials.R);
|
if (!swipeEnabled) drawKey('R', specials.R);
|
||||||
isDecimal = true;
|
isDecimal = true;
|
||||||
@@ -644,6 +646,7 @@ function buttonPress(val) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
|
Bangle.buzz();
|
||||||
specials.R.val = 'C';
|
specials.R.val = 'C';
|
||||||
if (!swipeEnabled) drawKey('R', specials.R);
|
if (!swipeEnabled) drawKey('R', specials.R);
|
||||||
const is0Negative = (currNumber === 0 && 1/currNumber === -Infinity);
|
const is0Negative = (currNumber === 0 && 1/currNumber === -Infinity);
|
||||||
|
|||||||
Reference in New Issue
Block a user