mirror of https://github.com/espruino/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.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.14: made the delay needlessly long to see if it even does anything
|
||||||
1.15: moved accel & vibration commands to the accelHandler function
|
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();
|
drawMenu();
|
||||||
Bangle.on ('touch', touchHandler);
|
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",
|
{ "id": "multidice",
|
||||||
"name": "multiple dice roller",
|
"name": "multiple dice roller",
|
||||||
"shortName":"multidice",
|
"shortName":"multidice",
|
||||||
"version":"1.15",
|
"version":"1.16",
|
||||||
"description": "roll anywhere from 1-8 dice at the same time",
|
"description": "roll anywhere from 1-8 dice at the same time",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,game",
|
"tags": "tool,game",
|
||||||
|
|
Loading…
Reference in New Issue