refactor: joystick input
This commit is contained in:
parent
2dee8e732e
commit
e3cc761d56
|
@ -59,7 +59,7 @@ function Play() {
|
|||
switch (type) {
|
||||
case 'joystickMove':
|
||||
return value === 0 ? -1 : selfEntity.activeSlotIndex;
|
||||
case 'buttonPress':
|
||||
case 'joystickButtonPress':
|
||||
case 'keyDown':
|
||||
return selfEntity.activeSlotIndex;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user