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 = {
|
const cfg_keyboard_azerty = {
|
||||||
padID: 'keyboard',
|
padID: 'keyboard',
|
||||||
padType: 'azerty',
|
padType: 'default',
|
||||||
gamepadMapping: {
|
gamepadMapping: {
|
||||||
KEY_A: Phaser.Input.Keyboard.KeyCodes.A,
|
KEY_A: Phaser.Input.Keyboard.KeyCodes.A,
|
||||||
KEY_B: Phaser.Input.Keyboard.KeyCodes.B,
|
KEY_B: Phaser.Input.Keyboard.KeyCodes.B,
|
||||||
|
|
|
@ -86,7 +86,7 @@ export class InputsController {
|
||||||
private gamepadSupport: boolean = true;
|
private gamepadSupport: boolean = true;
|
||||||
|
|
||||||
public chosenGamepad: String;
|
public chosenGamepad: String;
|
||||||
public chosenKeyboard: string = "azerty";
|
public chosenKeyboard: string = "default";
|
||||||
private disconnectedGamepads: Array<String> = new Array();
|
private disconnectedGamepads: Array<String> = new Array();
|
||||||
|
|
||||||
private pauseUpdate: boolean = false;
|
private pauseUpdate: boolean = false;
|
||||||
|
@ -349,7 +349,7 @@ export class InputsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
setupKeyboard(): void {
|
setupKeyboard(): void {
|
||||||
for (const layout of ['azerty']) {
|
for (const layout of ['default']) {
|
||||||
const config = this.getConfigKeyboard(layout);
|
const config = this.getConfigKeyboard(layout);
|
||||||
config.custom = this.keyboardConfigs[layout]?.custom || {...config.default};
|
config.custom = this.keyboardConfigs[layout]?.custom || {...config.default};
|
||||||
this.keyboardConfigs[layout] = config;
|
this.keyboardConfigs[layout] = config;
|
||||||
|
@ -579,7 +579,7 @@ export class InputsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
getConfigKeyboard(id: string): InterfaceConfig {
|
getConfigKeyboard(id: string): InterfaceConfig {
|
||||||
if (id === 'azerty')
|
if (id === 'default')
|
||||||
return cfg_keyboard_azerty;
|
return cfg_keyboard_azerty;
|
||||||
|
|
||||||
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, {
|
scene.ui.setOverlayMode(Mode.OPTION_SELECT, {
|
||||||
options: [{
|
options: [{
|
||||||
label: 'azerty',
|
label: 'Default',
|
||||||
handler: changeKeyboardHandler,
|
|
||||||
}, {
|
|
||||||
label: 'qwerty',
|
|
||||||
handler: changeKeyboardHandler,
|
handler: changeKeyboardHandler,
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue