mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-03 11:56:40 +02:00
Render controller customization summary
This commit is contained in:
@@ -4,6 +4,7 @@ import { Toast } from "@utils/toast";
|
||||
import { BxLogger } from "@utils/bx-logger";
|
||||
import { PrefKey } from "@/enums/pref-keys";
|
||||
import { getPref } from "./settings-storages/global-settings-storage";
|
||||
import { GamepadKeyName, type GamepadKey } from "@/enums/gamepad";
|
||||
|
||||
// Show a toast when connecting/disconecting controller
|
||||
export function showGamepadToast(gamepad: Gamepad) {
|
||||
@@ -90,3 +91,7 @@ export function generateVirtualControllerMapping(override: {}={}) {
|
||||
|
||||
return Object.assign({}, mapping, override);
|
||||
}
|
||||
|
||||
export function getGamepadPrompt(gamepadKey: GamepadKey): string {
|
||||
return GamepadKeyName[gamepadKey][1];
|
||||
}
|
||||
|
Reference in New Issue
Block a user