renamed azerty to default since it's not usefull anymore
parent
769412e452
commit
b8856d246e
|
@ -3,7 +3,7 @@ import {SettingKeyboard} from "#app/system/settings-keyboard";
|
|||
|
||||
const cfg_keyboard_azerty = {
|
||||
padID: 'keyboard',
|
||||
padType: 'azerty',
|
||||
padType: 'default',
|
||||
gamepadMapping: {
|
||||
KEY_A: Phaser.Input.Keyboard.KeyCodes.A,
|
||||
KEY_B: Phaser.Input.Keyboard.KeyCodes.B,
|
||||
|
|
|
@ -86,7 +86,7 @@ export class InputsController {
|
|||
private gamepadSupport: boolean = true;
|
||||
|
||||
public chosenGamepad: String;
|
||||
public chosenKeyboard: string = "azerty";
|
||||
public chosenKeyboard: string = "default";
|
||||
private disconnectedGamepads: Array<String> = new Array();
|
||||
|
||||
private pauseUpdate: boolean = false;
|
||||
|
@ -349,7 +349,7 @@ export class InputsController {
|
|||
}
|
||||
|
||||
setupKeyboard(): void {
|
||||
for (const layout of ['azerty']) {
|
||||
for (const layout of ['default']) {
|
||||
const config = this.getConfigKeyboard(layout);
|
||||
config.custom = this.keyboardConfigs[layout]?.custom || {...config.default};
|
||||
this.keyboardConfigs[layout] = config;
|
||||
|
@ -579,7 +579,7 @@ export class InputsController {
|
|||
}
|
||||
|
||||
getConfigKeyboard(id: string): InterfaceConfig {
|
||||
if (id === 'azerty')
|
||||
if (id === 'default')
|
||||
return cfg_keyboard_azerty;
|
||||
|
||||
return cfg_keyboard_azerty;
|
||||
|
|
|
@ -115,10 +115,7 @@ export function setSettingKeyboard(scene: BattleScene, setting: SettingKeyboard,
|
|||
};
|
||||
scene.ui.setOverlayMode(Mode.OPTION_SELECT, {
|
||||
options: [{
|
||||
label: 'azerty',
|
||||
handler: changeKeyboardHandler,
|
||||
}, {
|
||||
label: 'qwerty',
|
||||
label: 'Default',
|
||||
handler: changeKeyboardHandler,
|
||||
}]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue