Detach VIRTUAL_GAMEPAD_ID from EmulatedMkbHandler

This commit is contained in:
redphx
2024-10-01 17:22:33 +07:00
parent 12d8d766dc
commit 8f6bc5cb1b
8 changed files with 1109 additions and 1413 deletions

View File

@@ -1,6 +1,6 @@
import { GamepadKey } from "@/enums/mkb";
import { PrefKey } from "@/enums/pref-keys";
import { EmulatedMkbHandler } from "@/modules/mkb/mkb-handler";
import { VIRTUAL_GAMEPAD_ID } from "@/modules/mkb/mkb-handler";
import { BxEvent } from "@/utils/bx-event";
import { STATES } from "@/utils/global";
import { CE, isElementVisible } from "@/utils/html";
@@ -263,7 +263,7 @@ export class NavigationDialogManager {
}
// Ignore virtual controller
if (gamepad.id === EmulatedMkbHandler.VIRTUAL_GAMEPAD_ID) {
if (gamepad.id === VIRTUAL_GAMEPAD_ID) {
continue;
}