UPD: Profile type definition

This commit is contained in:
Robert Kossessa
2024-03-22 16:19:44 +01:00
parent 2818a83b03
commit 2fc8e555ae

View File

@@ -34,14 +34,16 @@ export interface Profile {
buttonDPress: number
guiEnable: boolean
keys: Key[]
knob: Knob[]
knob: Value[]
}
export interface Key {
pressed: Pressed[]
pressedActions: Action[]
releasedActions: Action[]
heldActions: Action[]
}
export interface Pressed {
export interface Action {
type: string
keyCodes?: number[]
channel?: number
@@ -50,7 +52,7 @@ export interface Pressed {
buttons?: number
}
export interface Knob {
export interface Value {
keyState: number
angleMin: number
angleMax: number