From 02f33875e49821dfd6c965f04ada5d8e3a9a55b5 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 25 May 2024 18:55:33 +0700 Subject: [PATCH] Add L3 & R3 buttons and rearrange buttons --- src/modules/controller-shortcut.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/modules/controller-shortcut.ts b/src/modules/controller-shortcut.ts index 0ececd7..8f61fd4 100644 --- a/src/modules/controller-shortcut.ts +++ b/src/modules/controller-shortcut.ts @@ -215,10 +215,18 @@ export class ControllerShortcut { ControllerShortcut.#ACTIONS = JSON.parse(window.localStorage.getItem(ControllerShortcut.#STORAGE_KEY) || '{}'); const buttons = { + [GamepadKey.Y]: PrompFont.Y, [GamepadKey.A]: PrompFont.A, [GamepadKey.B]: PrompFont.B, [GamepadKey.X]: PrompFont.X, - [GamepadKey.Y]: PrompFont.Y, + + [GamepadKey.UP]: PrompFont.UP, + [GamepadKey.DOWN]: PrompFont.DOWN, + [GamepadKey.LEFT]: PrompFont.LEFT, + [GamepadKey.RIGHT]: PrompFont.RIGHT, + + [GamepadKey.SELECT]: PrompFont.SELECT, + [GamepadKey.START]: PrompFont.START, [GamepadKey.LB]: PrompFont.LB, [GamepadKey.RB]: PrompFont.RB, @@ -226,13 +234,8 @@ export class ControllerShortcut { [GamepadKey.LT]: PrompFont.LT, [GamepadKey.RT]: PrompFont.RT, - [GamepadKey.SELECT]: PrompFont.SELECT, - [GamepadKey.START]: PrompFont.START, - - [GamepadKey.UP]: PrompFont.UP, - [GamepadKey.DOWN]: PrompFont.DOWN, - [GamepadKey.LEFT]: PrompFont.LEFT, - [GamepadKey.RIGHT]: PrompFont.RIGHT, + [GamepadKey.L3]: PrompFont.L3, + [GamepadKey.R3]: PrompFont.R3, }; const actions: {[key: string]: Partial<{[key in ShortcutAction]: string | string[]}>} = {