mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 05:38:27 +02:00
Squashed commit of the following:
commit 2faed50e5c2165647e389d794de673038d56241e Author: redphx <96280+redphx@users.noreply.github.com> Date: Fri May 24 18:09:25 2024 +0700 Make shortcuts work with controller commit b8f6c503ba7969de3a232644d3f6b53532a4b7bb Author: redphx <96280+redphx@users.noreply.github.com> Date: Fri May 24 17:01:15 2024 +0700 Update translations commit 6f6c0899e5a09cd5534e06a9e272bf78c74536dc Author: redphx <96280+redphx@users.noreply.github.com> Date: Fri May 24 17:00:50 2024 +0700 Preload PrompFont commit 1bf0f2b9dae77890d35091bed970b942c4d61fbc Author: redphx <96280+redphx@users.noreply.github.com> Date: Fri May 24 07:08:05 2024 +0700 Render Controller shortcuts settings commit 2f24965c73a941be2ebc8a3509dc540a47b4e38d Author: redphx <96280+redphx@users.noreply.github.com> Date: Thu May 23 17:21:55 2024 +0700 Fix not able to capture screenshot after switching games commit 6ac791e2dfb17215ee82d449047d0cd11d185c42 Author: redphx <96280+redphx@users.noreply.github.com> Date: Thu May 23 17:11:19 2024 +0700 Hijack the Home button
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { GamepadKeyNameType } from "@/types/mkb";
|
||||
import { PrompFont } from "@/utils/prompt-font";
|
||||
|
||||
export enum GamepadKey {
|
||||
A = 0,
|
||||
@@ -18,6 +19,7 @@ export enum GamepadKey {
|
||||
LEFT = 14,
|
||||
RIGHT = 15,
|
||||
HOME = 16,
|
||||
SHARE = 17,
|
||||
|
||||
LS_UP = 100,
|
||||
LS_DOWN = 101,
|
||||
@@ -32,36 +34,36 @@ export enum GamepadKey {
|
||||
|
||||
|
||||
export const GamepadKeyName: GamepadKeyNameType = {
|
||||
[GamepadKey.A]: ['A', '⇓'],
|
||||
[GamepadKey.B]: ['B', '⇒'],
|
||||
[GamepadKey.X]: ['X', '⇐'],
|
||||
[GamepadKey.Y]: ['Y', '⇑'],
|
||||
[GamepadKey.A]: ['A', PrompFont.A],
|
||||
[GamepadKey.B]: ['B', PrompFont.B],
|
||||
[GamepadKey.X]: ['X', PrompFont.X],
|
||||
[GamepadKey.Y]: ['Y', PrompFont.Y],
|
||||
|
||||
[GamepadKey.LB]: ['LB', '↘'],
|
||||
[GamepadKey.RB]: ['RB', '↙'],
|
||||
[GamepadKey.LT]: ['LT', '↖'],
|
||||
[GamepadKey.RT]: ['RT', '↗'],
|
||||
[GamepadKey.LB]: ['LB', PrompFont.LB],
|
||||
[GamepadKey.RB]: ['RB', PrompFont.RB],
|
||||
[GamepadKey.LT]: ['LT', PrompFont.LT],
|
||||
[GamepadKey.RT]: ['RT', PrompFont.RT],
|
||||
|
||||
[GamepadKey.SELECT]: ['Select', '⇺'],
|
||||
[GamepadKey.START]: ['Start', '⇻'],
|
||||
[GamepadKey.HOME]: ['Home', ''],
|
||||
[GamepadKey.SELECT]: ['Select', PrompFont.SELECT],
|
||||
[GamepadKey.START]: ['Start', PrompFont.START],
|
||||
[GamepadKey.HOME]: ['Home', PrompFont.HOME],
|
||||
|
||||
[GamepadKey.UP]: ['D-Pad Up', '≻'],
|
||||
[GamepadKey.DOWN]: ['D-Pad Down', '≽'],
|
||||
[GamepadKey.LEFT]: ['D-Pad Left', '≺'],
|
||||
[GamepadKey.RIGHT]: ['D-Pad Right', '≼'],
|
||||
[GamepadKey.UP]: ['D-Pad Up', PrompFont.UP],
|
||||
[GamepadKey.DOWN]: ['D-Pad Down', PrompFont.DOWN],
|
||||
[GamepadKey.LEFT]: ['D-Pad Left', PrompFont.LEFT],
|
||||
[GamepadKey.RIGHT]: ['D-Pad Right', PrompFont.RIGHT],
|
||||
|
||||
[GamepadKey.L3]: ['L3', '↺'],
|
||||
[GamepadKey.LS_UP]: ['Left Stick Up', '↾'],
|
||||
[GamepadKey.LS_DOWN]: ['Left Stick Down', '⇂'],
|
||||
[GamepadKey.LS_LEFT]: ['Left Stick Left', '↼'],
|
||||
[GamepadKey.LS_RIGHT]: ['Left Stick Right', '⇀'],
|
||||
[GamepadKey.L3]: ['L3', PrompFont.L3],
|
||||
[GamepadKey.LS_UP]: ['Left Stick Up', PrompFont.LS_UP],
|
||||
[GamepadKey.LS_DOWN]: ['Left Stick Down', PrompFont.LS_DOWN],
|
||||
[GamepadKey.LS_LEFT]: ['Left Stick Left', PrompFont.LS_LEFT],
|
||||
[GamepadKey.LS_RIGHT]: ['Left Stick Right', PrompFont.LS_RIGHT],
|
||||
|
||||
[GamepadKey.R3]: ['R3', '↻'],
|
||||
[GamepadKey.RS_UP]: ['Right Stick Up', '↿'],
|
||||
[GamepadKey.RS_DOWN]: ['Right Stick Down', '⇃'],
|
||||
[GamepadKey.RS_LEFT]: ['Right Stick Left', '↽'],
|
||||
[GamepadKey.RS_RIGHT]: ['Right Stick Right', '⇁'],
|
||||
[GamepadKey.R3]: ['R3', PrompFont.R3],
|
||||
[GamepadKey.RS_UP]: ['Right Stick Up', PrompFont.RS_UP],
|
||||
[GamepadKey.RS_DOWN]: ['Right Stick Down', PrompFont.RS_DOWN],
|
||||
[GamepadKey.RS_LEFT]: ['Right Stick Left', PrompFont.RS_LEFT],
|
||||
[GamepadKey.RS_RIGHT]: ['Right Stick Right', PrompFont.RS_RIGHT],
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user