Documentation ¶
Index ¶
Constants ¶
View Source
const ( Key1 = 2 KeyEqual = 13 KeyQ = 16 KeyRightbrace = 27 KeyA = 30 KeyGrave = 41 KeyBackslash = 43 KeySlash = 53 KeyEsc = 1 KeyBackspace = 14 KeyTab = 15 KeyEnter = 28 KeyLeftCtrl = 29 KeyLeftShift = 42 KeyRightShift = 54 KeyLeftAlt = 56 KeySpace = 57 KeyKPDot = 83 KeyF11 = 87 KeyF12 = 88 KeyKPEnter = 96 KeyRightCtrl = 97 KeyRightAlt = 100 KeyDelete = 111 KeyPause = 119 KeyLeftMeta = 125 KeyCompose = 127 // ExeGrep is the path to grep ExeGrep = "/bin/grep" // DumpDevices is the command line to parse /proc/bus/input/devices for keyboard event handlers DumpDevices = ExeGrep + " -E 'Handlers|EV=' /proc/bus/input/devices | " + ExeGrep + " -B1 'EV=120013' | " + ExeGrep + " -Eo 'event[0-9]+'" )
View Source
const ( // EvMake is when a key is pressed EvMake = 1 // EvBreak is when a key is release EvBreak = 0 // EvRepeat is when key switches to repeating EvRepeat = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.