decreased vibration time, decreased accel requirement

pull/2623/head
Le~Kat 2023-02-25 10:20:26 -05:00
parent 1499a524d9
commit 3001618e0f
3 changed files with 5 additions and 10 deletions

View File

@ -10,3 +10,4 @@
1.08: still trying to fix the lack of vibrations
1.09: hopefully now it's fixed?
1.10: not having web bluetooth to debug is a PAIN
1.11: decreased vibration time, decreased accel requirement

View File

@ -84,7 +84,7 @@ function touchHandler (button, xy) {
function accelHandler (xyz) {
if (xyz.diff >= 0.4) {
if (xyz.diff >= 0.3) {
menu = false;
rollDice();
@ -126,12 +126,7 @@ function rollDice() {
}
}
Bangle.on ('accel', voidFn);
console.log ("before");
Bangle.buzz().then(()=>{
Bangle.on ('accel', accelHandler);
});
console.log ("after");
vibrate();
}
function random (max) {
@ -142,9 +137,8 @@ function random (max) {
function vibrate() {
Bangle.on ('accel', voidFn);
Bangle.buzz().then ((value) => {
Bangle.buzz(50, 1).then ((value) => {
console.log ("I ran.");
Bangle.on ('accel', accelHandler);
});
}

View File

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