mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Add L3 & R3 buttons and rearrange buttons
This commit is contained in:
parent
474f655707
commit
02f33875e4
@ -215,10 +215,18 @@ export class ControllerShortcut {
|
|||||||
ControllerShortcut.#ACTIONS = JSON.parse(window.localStorage.getItem(ControllerShortcut.#STORAGE_KEY) || '{}');
|
ControllerShortcut.#ACTIONS = JSON.parse(window.localStorage.getItem(ControllerShortcut.#STORAGE_KEY) || '{}');
|
||||||
|
|
||||||
const buttons = {
|
const buttons = {
|
||||||
|
[GamepadKey.Y]: PrompFont.Y,
|
||||||
[GamepadKey.A]: PrompFont.A,
|
[GamepadKey.A]: PrompFont.A,
|
||||||
[GamepadKey.B]: PrompFont.B,
|
[GamepadKey.B]: PrompFont.B,
|
||||||
[GamepadKey.X]: PrompFont.X,
|
[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.LB]: PrompFont.LB,
|
||||||
[GamepadKey.RB]: PrompFont.RB,
|
[GamepadKey.RB]: PrompFont.RB,
|
||||||
@ -226,13 +234,8 @@ export class ControllerShortcut {
|
|||||||
[GamepadKey.LT]: PrompFont.LT,
|
[GamepadKey.LT]: PrompFont.LT,
|
||||||
[GamepadKey.RT]: PrompFont.RT,
|
[GamepadKey.RT]: PrompFont.RT,
|
||||||
|
|
||||||
[GamepadKey.SELECT]: PrompFont.SELECT,
|
[GamepadKey.L3]: PrompFont.L3,
|
||||||
[GamepadKey.START]: PrompFont.START,
|
[GamepadKey.R3]: PrompFont.R3,
|
||||||
|
|
||||||
[GamepadKey.UP]: PrompFont.UP,
|
|
||||||
[GamepadKey.DOWN]: PrompFont.DOWN,
|
|
||||||
[GamepadKey.LEFT]: PrompFont.LEFT,
|
|
||||||
[GamepadKey.RIGHT]: PrompFont.RIGHT,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const actions: {[key: string]: Partial<{[key in ShortcutAction]: string | string[]}>} = {
|
const actions: {[key: string]: Partial<{[key in ShortcutAction]: string | string[]}>} = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user