fix(controller): save remaps per profile, gate modals on enabled (#69)

This commit is contained in:
2026-05-16 20:43:27 -07:00
committed by GitHub
parent 49f89e6452
commit 5250ca8214
31 changed files with 1639 additions and 463 deletions
+13
View File
@@ -227,6 +227,18 @@ export interface ControllerButtonIndicesConfig {
rightTrigger?: number;
}
export interface ControllerProfileConfig {
label?: string;
buttonIndices?: ControllerButtonIndicesConfig;
bindings?: ControllerBindingsConfig;
}
export interface ResolvedControllerProfileConfig {
label: string;
buttonIndices: Required<ControllerButtonIndicesConfig>;
bindings: Required<ResolvedControllerBindingsConfig>;
}
export interface ControllerConfig {
enabled?: boolean;
preferredGamepadId?: string;
@@ -241,6 +253,7 @@ export interface ControllerConfig {
repeatIntervalMs?: number;
buttonIndices?: ControllerButtonIndicesConfig;
bindings?: ControllerBindingsConfig;
profiles?: Record<string, ControllerProfileConfig>;
}
export interface ControllerPreferenceUpdate {