Support shoulder buttons on 8bitdo zero

This commit is contained in:
Neale Pickett 2020-05-20 15:00:17 -06:00
parent 94914dc469
commit 770674dfae
1 changed files with 2 additions and 2 deletions

View File

@ -539,8 +539,8 @@ class Vail {
continue
}
currentButtons.key |= gp.buttons[0].pressed || gp.buttons[1].pressed
currentButtons.dit |= gp.buttons[2].pressed || gp.buttons[4].pressed
currentButtons.dah |= gp.buttons[3].pressed || gp.buttons[5].pressed
currentButtons.dit |= gp.buttons[2].pressed || gp.buttons[4].pressed || gp.buttons[6].pressed
currentButtons.dah |= gp.buttons[3].pressed || gp.buttons[5].pressed || gp.buttons[7].pressed
}
if (currentButtons.key != this.gamepadButtons.key) {