ch9329

package
v0.0.0-...-59404b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALTTRLSHIFTOSKEYINDEX = 5
	RESPONSESTATUSINDEX   = 5
	KEYEVENTTIMEOUT       = time.Millisecond * 200
	MOUSEBUTTONINDEX      = 6
	XMOUSEMOVEINDEXLOW    = 7
	XMOUSEMOVEINDEXHIGH   = 8
	YMOUSEMOVEINDEXLOW    = 9
	YMOUSEMOVEINDEXHIGH   = 10
	MOUSESCROLLINDEX      = 11
)
View Source
const (
	LEFTBUTTON   = 1
	RIGHTBUTTON  = 1 << 1
	MIDDLEBUTTON = 1 << 2
)

ch9329 mouse button definition

View Source
const (
	ENTER = iota + 0x28
	ESC
	BACKSPACE
	TAB
	SPACE
	MINUS
	EQUAL
	BRACKETLEFT
	BRACKETRIGHT
	BACKSLASH

	SEMICOLON
	SINGLEQUOTE
	BACKQUOTE
	COMMA
	PERIOD
	SLASH
	CAPSLOCK
)

ch9329 key definition - key code

View Source
const (
	PRINTSCREEN = iota + 0x46
	SCROLLLOCK
	PAUSEBRAKE
	INSERT
	HOME
	PAGEUP
	DELETE
	END
	PAGEDOWN
	RIGHT
	LEFT
	DOWN
	UP
)
View Source
const (
	CTRLLEFT   = 0x01
	CTRLRIGHT  = 0x10
	SHIFTLEFT  = 0x02
	SHIFTRIGHT = 0x20
	ALTLEFT    = 0x04
	ALTRIGHT   = 0x40
	OSLEFT     = 0x08
	OSRIGHT    = 0x80
)
View Source
const (
	// alphabet key code base
	ALPHABETBASE = 0x04

	// number key code base
	NUMBERBASE = 0x1e

	// function key code base
	FUNCTIONBASE = 0x3a
)

ch9329 key definition - key code base of alphabet, number, function key

Variables

This section is empty.

Functions

func NewCh9329

func NewCh9329(x, y int) *ch9329

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL