Fix disable mouse joystick

This commit is contained in:
Will Scullin 2023-02-23 20:26:13 -08:00
parent eab02bff31
commit f84de46138
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD
1 changed files with 2 additions and 1 deletions

View File

@ -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: