1
0
Fork 0
mirror of https://github.com/Luzifer/streamdeck.git synced 2025-01-01 23:51:24 +00:00
streamdeck/cmd/streamdeck/keymap.go
Knut Ahlers 4030524c09
Add "key_press" action
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-11-21 17:14:05 +01:00

89 lines
2.4 KiB
Go

package main
import "github.com/sashko/go-uinput"
var uinputKeyMapping = map[string]uint16{
`<esc>`: uinput.KeyEsc,
`1`: uinput.Key1,
`2`: uinput.Key2,
`3`: uinput.Key3,
`4`: uinput.Key4,
`5`: uinput.Key5,
`6`: uinput.Key6,
`7`: uinput.Key7,
`8`: uinput.Key8,
`9`: uinput.Key9,
`0`: uinput.Key0,
`-`: uinput.KeyMinus,
`=`: uinput.KeyEqual,
`<bsp>`: uinput.KeyBackspace,
`<tab>`: uinput.KeyTab,
`q`: uinput.KeyQ,
`w`: uinput.KeyW,
`e`: uinput.KeyE,
`r`: uinput.KeyR,
`t`: uinput.KeyT,
`y`: uinput.KeyY,
`u`: uinput.KeyU,
`i`: uinput.KeyI,
`o`: uinput.KeyO,
`p`: uinput.KeyP,
`[`: uinput.KeyLeftBrace,
`]`: uinput.KeyRightBrace,
`<enter>`: uinput.KeyEnter,
`<lctrl>`: uinput.KeyLeftCtrl,
`a`: uinput.KeyA,
`s`: uinput.KeyS,
`d`: uinput.KeyD,
`f`: uinput.KeyF,
`g`: uinput.KeyG,
`h`: uinput.KeyH,
`j`: uinput.KeyJ,
`k`: uinput.KeyK,
`l`: uinput.KeyL,
`;`: uinput.KeySemicolon,
`'`: uinput.KeyApostrophe,
``: uinput.KeyGrave,
`<lshift>`: uinput.KeyLeftShift,
`\`: uinput.KeyBackslash,
`z`: uinput.KeyZ,
`x`: uinput.KeyX,
`c`: uinput.KeyC,
`v`: uinput.KeyV,
`b`: uinput.KeyB,
`n`: uinput.KeyN,
`m`: uinput.KeyM,
`,`: uinput.KeyComma,
`.`: uinput.KeyDot,
`/`: uinput.KeySlash,
`<rshift>`: uinput.KeyRightShift,
`<lalt>`: uinput.KeyLeftAlt,
`<space>`: uinput.KeySpace,
`<caps>`: uinput.KeyCapsLock,
`f1`: uinput.KeyF1,
`f2`: uinput.KeyF2,
`f3`: uinput.KeyF3,
`f4`: uinput.KeyF4,
`f5`: uinput.KeyF5,
`f6`: uinput.KeyF6,
`f7`: uinput.KeyF7,
`f8`: uinput.KeyF8,
`f9`: uinput.KeyF9,
`f10`: uinput.KeyF10,
`<num>`: uinput.KeyNumLock,
`<scroll>`: uinput.KeyScrollLock,
`f11`: uinput.KeyF11,
`f12`: uinput.KeyF12,
`f13`: uinput.KeyF13,
`f14`: uinput.KeyF14,
`f15`: uinput.KeyF15,
`f16`: uinput.KeyF16,
`f17`: uinput.KeyF17,
`f18`: uinput.KeyF18,
`f19`: uinput.KeyF19,
`f20`: uinput.KeyF20,
`f21`: uinput.KeyF21,
`f22`: uinput.KeyF22,
`f23`: uinput.KeyF23,
`f24`: uinput.KeyF24,
}