mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 11:52:18 +02:00
merge with branch fix lost focus on disabled gamepad
This commit is contained in:
parent
5c9af9bb3c
commit
59832c6bef
@ -61,6 +61,8 @@ export const settingGamepadDefaults: SettingDefaults = {
|
||||
export function setSettingGamepad(scene: BattleScene, setting: SettingGamepad, value: integer): boolean {
|
||||
switch (setting) {
|
||||
case SettingGamepad.Gamepad_Support:
|
||||
// if we change the value of the gamepad support, we call a method in the inputController to
|
||||
// activate or deactivate the controller listener
|
||||
scene.inputController.setGamepadSupport(settingGamepadOptions[setting][value] !== 'Disabled');
|
||||
break;
|
||||
case SettingGamepad.Swap_A_and_B:
|
||||
|
Loading…
Reference in New Issue
Block a user