kbd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	KBSTATP = 0x64 // kbd controller status port(I)
	KBS_DIB = 0x01 // kbd data in buffer
	KBDATAP = 0x60 // kbd data port(I)

	NO = 0

	SHIFT = (1 << 0)
	CTL   = (1 << 1)
	ALT   = (1 << 2)

	CAPSLOCK   = (1 << 3)
	NUMLOCK    = (1 << 4)
	SCROLLLOCK = (1 << 5)

	E0ESC = (1 << 6)

	// Special keycodes
	KEY_HOME = 0xE0
	KEY_END  = 0xE1
	KEY_UP   = 0xE2
	KEY_DN   = 0xE3
	KEY_LF   = 0xE4
	KEY_RT   = 0xE5
	KEY_PGUP = 0xE6
	KEY_PGDN = 0xE7
	KEY_INS  = 0xE8
	KEY_DEL  = 0xE9
)

Variables

This section is empty.

Functions

func Init

func Init()

func OnInput

func OnInput(callback func(byte))

func Pressed

func Pressed(key byte) bool

func ReadByte

func ReadByte() int

Types

This section is empty.

Jump to

Keyboard shortcuts

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