forked from FOSS/BangleApps
enabled button usage & temporarily disabled acceleration
parent
b3cc27a391
commit
ef8b26c490
|
@ -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
|
||||
|
|
|
@ -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});
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue