Update better-xcloud.user.js

This commit is contained in:
redphx 2024-05-25 18:55:44 +07:00
parent 02f33875e4
commit 29813fbaf2

View File

@ -3473,20 +3473,22 @@ class ControllerShortcut {
static renderSettings() { static renderSettings() {
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,
[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 = { const actions = {
[t("device")]: AppInterface && { [t("device")]: AppInterface && {