sys

package
v2.0.0-beta2.0...-cbf953a Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidType C.int = -1
View Source
const KeyClass = 0

Constants

Variables

View Source
var KeyMap map[Key]string = map[Key]string{

	50:  "shift",
	62:  "shift",
	37:  "ctrl",
	105: "ctrl",
	64:  "alt",
	108: "alt",

	24: "q",
	25: "w",
	26: "e",
	27: "r",
	28: "t",
	29: "y",
	30: "u",
	31: "i",
	32: "o",
	33: "p",
	34: "[",
	35: "]",
	51: "\\",

	38: "a",
	39: "s",
	40: "d",
	41: "f",
	42: "g",
	43: "h",
	44: "j",
	45: "k",
	46: "l",
	47: ",",
	48: "\"",
	36: "Return",

	52: "z",
	53: "x",
	54: "c",
	55: "v",
	56: "b",
	57: "n",
	58: "m",
	59: ",",
	60: ".",
	61: "/",

	49: "`",
	10: "1",
	11: "2",
	12: "3",
	13: "4",
	14: "5",
	15: "6",
	16: "7",
	17: "8",
	18: "9",
	19: "0",
	20: "-",
	21: "+",

	65: " ",

	90:  "<Num-0>",
	87:  "<Num-1>",
	88:  "<Num-2>",
	89:  "<Num-3>",
	83:  "<Num-4>",
	84:  "<Num-5>",
	85:  "<Num-6>",
	79:  "<Num-7>",
	80:  "<Num-8>",
	81:  "<Num-9>",
	106: "<Num-/>",
	63:  "<Num-*>",
	82:  "<Num-->",
	86:  "<Num-+>",

	67: "F1",
	68: "F2",
	69: "F3",
	70: "F4",
	71: "F5",
	72: "F6",
	73: "F7",
	74: "F8",
	75: "F9",
	76: "F10",
	95: "F11",
	96: "F12",

	9:  "esc",
	22: "backspace",
}

Functions

func StartXGrabber

func StartXGrabber(keys chan int)

StartXGrabber starts the X Keyboard Grabber

keys - channel to send keycodes

Types

type Key

type Key uint8

type Modifier

type Modifier uint8

Jump to

Keyboard shortcuts

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