Fix disable mouse joystick (#180)

This commit is contained in:
Will Scullin 2023-02-23 20:29:35 -08:00 committed by GitHub
parent eab02bff31
commit c6f5c9f504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: