mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Fix disable mouse joystick (#180)
This commit is contained in:
parent
eab02bff31
commit
c6f5c9f504
@ -76,11 +76,12 @@ export class JoyStick implements OptionHandler {
|
||||
];
|
||||
}
|
||||
|
||||
setOption(name: string, _value: boolean) {
|
||||
setOption(name: string, value: boolean) {
|
||||
switch (name) {
|
||||
case JOYSTICK_DISABLE:
|
||||
this.io.paddle(0, 0.5);
|
||||
this.io.paddle(1, 0.5);
|
||||
this.disableMouseJoystick = value;
|
||||
break;
|
||||
case JOYSTICK_FLIP_X_AXIS:
|
||||
case JOYSTICK_FLIP_Y_AXIS:
|
||||
|
Loading…
Reference in New Issue
Block a user