mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-10 01:27:19 +02:00
28 lines
624 B
TypeScript
28 lines
624 B
TypeScript
import { MkbPresetKey } from "@modules/mkb/definitions";
|
|
|
|
type GamepadKeyNameType = {[index: string | number]: string[]};
|
|
|
|
type MkbStoredPreset = {
|
|
id?: number;
|
|
name: string;
|
|
data: MkbPresetData;
|
|
};
|
|
|
|
type MkbStoredPresets = {
|
|
[index: number]: MkbStoredPreset;
|
|
}
|
|
|
|
type MkbPresetData = {
|
|
mapping: {[index: number]: (string | null)[]};
|
|
mouse: Omit<{
|
|
[index in MkbPresetKey]: number | null;
|
|
}, MkbPresetKey.MOUSE_MAP_TO> & {
|
|
[MkbPresetKey.MOUSE_MAP_TO]?: string;
|
|
};
|
|
};
|
|
|
|
type MkbConvertedPresetData = {
|
|
mapping: {[index: string]: number?};
|
|
mouse: MkbNormalPreset.mouse;
|
|
};
|