Documentation ¶
Index ¶
Constants ¶
View Source
const ( VendorID = 0x0b05 // ProductID = 0x1866 ProductID = 0x19b6 )
Defines the vendorID/productID for NKEY keyboard
View Source
const ( KeyROG uint32 = 56 KeyFnF4 uint32 = 179 KeyFnF5 uint32 = 174 KeyVolUp uint32 = 233 KeyVolDown uint32 = 234 KeyMuteMic uint32 = 124 KeyTpadToggle uint32 = 107 KeyLCDUp uint32 = 32 KeyLCDDown uint32 = 16 KeySleep uint32 = 108 KeyRFKill uint32 = 136 // KeyFnLeft uint32 = 178 // KeyFnRight uint32 = 179 KeyFnUp uint32 = 196 KeyFnDown uint32 = 197 KeyFnC uint32 = 158 KeyFnV uint32 = 138 KeyPgUp uint16 = 0x49 KeyPgDown uint16 = 0x51 )
Define key codes
Variables ¶
This section is empty.
Functions ¶
func NewHidListener ¶
func NewHidListener(haltCtx context.Context, eventCh chan uint32) (map[string]usb.DeviceInfo, error)
NewHidListener will read HID report and return key code to the channel
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.