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:
2026-03-14 18:13:18 -06:00
committed by Tanner
parent 1a2fa25ea7
commit 95cc91781d
+3
View File
@@ -554,6 +554,7 @@ function buttonPress(val) {
}
break;
case 'B':
Bangle.buzz();
if (isDecimal) {
isDecimal = false;
displayOutput(currNumber);
@@ -584,6 +585,7 @@ function buttonPress(val) {
if (swipeEnabled) drawNumbers();
break;
case '.':
Bangle.buzz();
specials.R.val = 'C';
if (!swipeEnabled) drawKey('R', specials.R);
isDecimal = true;
@@ -644,6 +646,7 @@ function buttonPress(val) {
}
break;
default: {
Bangle.buzz();
specials.R.val = 'C';
if (!swipeEnabled) drawKey('R', specials.R);
const is0Negative = (currNumber === 0 && 1/currNumber === -Infinity);