enabled button usage & temporarily disabled acceleration

pull/2623/head
Le~Kat 2023-02-25 13:00:36 -05:00
parent b3cc27a391
commit ef8b26c490
3 changed files with 16 additions and 2 deletions

View File

@ -15,3 +15,4 @@
1.13: added a delay after the buzzer stops to prevent multi-rolling
1.14: made the delay needlessly long to see if it even does anything
1.15: moved accel & vibration commands to the accelHandler function
1.16: enabled button usage & temporarily disabled acceleration

View File

@ -142,4 +142,17 @@ function random (max) {
drawMenu();
Bangle.on ('touch', touchHandler);
Bangle.on ('accel', accelHandler);
//Bangle.on ('accel', accelHandler);
setWatch (function() {
menu = false;
rollDice();
Bangle.buzz(50, 0.5).then (() => {
setTimeout (function() { // wait 50ms *after* the buzzing has stopped
//Bangle.on ('accel', accelHandler);
}, 50);
});
}, BTN, {repeat: true, edge: "falling", debounce: 10});

View File

@ -1,7 +1,7 @@
{ "id": "multidice",
"name": "multiple dice roller",
"shortName":"multidice",
"version":"1.15",
"version":"1.16",
"description": "roll anywhere from 1-8 dice at the same time",
"icon": "app.png",
"tags": "tool,game",