mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-06-11 23:04:50 +12:00
32 lines
641 B
TypeScript
32 lines
641 B
TypeScript
import { I_KeyPressObject } from "./../../interfaces/I_KeypressObject"
|
|
|
|
export interface KeybindsStateInterface {
|
|
keyManagement: KeyManagementInterface
|
|
}
|
|
|
|
export interface KeyManagementInterface {
|
|
timestamp: string,
|
|
userKeybinds: I_KeyPressObject[]
|
|
defaults: I_KeyPressObject[]
|
|
currentKeyPress: I_KeyPressObject
|
|
}
|
|
|
|
function state (): KeybindsStateInterface {
|
|
return {
|
|
keyManagement: {
|
|
timestamp: "",
|
|
userKeybinds: [],
|
|
defaults: [],
|
|
currentKeyPress: {
|
|
altKey: true,
|
|
ctrlKey: true,
|
|
shiftKey: true,
|
|
id: "",
|
|
keyCode: 99999
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
export default state
|