mirror of https://github.com/nealey/vail.git
Support shoulder buttons on 8bitdo zero
This commit is contained in:
parent
94914dc469
commit
770674dfae
|
@ -539,8 +539,8 @@ class Vail {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
currentButtons.key |= gp.buttons[0].pressed || gp.buttons[1].pressed
|
currentButtons.key |= gp.buttons[0].pressed || gp.buttons[1].pressed
|
||||||
currentButtons.dit |= gp.buttons[2].pressed || gp.buttons[4].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
|
currentButtons.dah |= gp.buttons[3].pressed || gp.buttons[5].pressed || gp.buttons[7].pressed
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentButtons.key != this.gamepadButtons.key) {
|
if (currentButtons.key != this.gamepadButtons.key) {
|
||||||
|
|
Loading…
Reference in New Issue