Documentation ¶
Index ¶
- Constants
- func IsAltCtrlShiftOsKey(keyCode byte) bool
- type BaseHid
- func (c *BaseHid) CloseDevice() error
- func (c *BaseHid) GetModelName() string
- func (c *BaseHid) KeyDown(eventKeyCode byte) error
- func (c *BaseHid) KeyUp(eventKeyCode byte) error
- func (c *BaseHid) MouseDown(button int) error
- func (c *BaseHid) MouseScroll(scroll int) error
- func (c *BaseHid) MouseUp(button int) error
- func (c *BaseHid) MoveTo(Xpoint uint16, Ypoint uint16) error
- func (c *BaseHid) OpenDevice(...string) error
- type Hid
- type KeyBoard
- type Mouse
Constants ¶
View Source
const ( BACKSPACE = 0x8 ENTER = 0xd SPACE = 0x20 TAB = 0x9 DELETE = 0x2e END = 0x23 HOME = 0x24 INSERT = 0x2d PAGEDOWN = 0x22 PAGEUP = 0x21 DOWN = 0x28 LEFT = 0x25 RIGHT = 0x27 UP = 0x26 ESC = 0x1b PRINTSCREEN = 0x2A ALT = 0x12 SHIFT = 0x10 CAPSLOCK = 0x14 CTRL = 0x11 OS = 0x5b PAUSEBRAKE = 0x13 MINUS = 0xAD PERIOD = 0xbe SLASH = 0xbf EQUAL = 0x3D BACKSLASH = 0xDC SEMICOLON = 0x3B SINGLEQUOTE = 0xDE BACKQUOTE = 0xc0 COMMA = 0xbc BRACKETLEFT = 0xdb BRACKETRIGHT = 0xdd SCROLLLOCK = 0x91 )
js keyboard event key code definition
View Source
const ( // alphabet key code base ALPHABETBASE = 0x41 ALPHABETLENGTH = 26 // number key code base NUMBERBASE = 0x30 NUMBERBASELENGHT = 10 // function key code base FUNCTIONBASE = 0x70 FUNCTIONBASELENGTH = 12 )
js keyboard event key code definition - key code base of alphabet, number, function key
View Source
const ( MouseLeftButton = iota MouseMiddleButton MouseRightButton )
js mouse event key code
Variables ¶
This section is empty.
Functions ¶
func IsAltCtrlShiftOsKey ¶
Types ¶
type BaseHid ¶
type BaseHid struct{}
func (*BaseHid) CloseDevice ¶
func (*BaseHid) GetModelName ¶
func (*BaseHid) MouseScroll ¶
func (*BaseHid) OpenDevice ¶
Click to show internal directories.
Click to hide internal directories.