1
0
Fork 0

score: fix scrolling on b2, change b2 detection

master
Mika Dede 2021-10-03 15:39:07 +02:00
parent e7d0903e82
commit fbe14a79d1
No known key found for this signature in database
GPG Key ID: 546586DC38D45BBD
1 changed files with 4 additions and 8 deletions

View File

@ -29,15 +29,11 @@ function getSecondsTime() {
}
function setupInputWatchers() {
if (global.BTN4) {
setWatch(() => handleInput(2), BTN2, { repeat: true });
setWatch(() => handleInput(0), BTN1, { repeat: true });
setWatch(() => handleInput(1), BTN3, { repeat: true });
} else {
setWatch(() => handleInput(2), BTN, { repeat: true });
}
isBangle1 = !!global.BTN4;
setWatch(() => handleInput(2), isBangle1 != null ? BTN2 : BTN, { repeat: true });
Bangle.setUI('updown', v => v && handleInput(Math.floor((v+2)/2)+(isBangle1 ? 0 : 3)));
Bangle.on('touch', (b, e) => {
if (b) {
if (isBangle1) {
if (b === 1) {
handleInput(3);
} else {