Documentation ¶
Index ¶
Constants ¶
View Source
const InvalidType C.int = -1
View Source
const KeyClass = 0
Constants
Variables ¶
View Source
var KeyMap map[int]string = map[int]string{
50: "<shift>",
62: "<shift>",
37: "<ctrl>",
105: "<ctrl>",
64: "alt",
108: "alt",
133: "133",
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>",
77: "<Num Lock>",
107: "<Print Scr>",
118: "<Insert>",
119: "<Delete>",
110: "<Home>",
112: "<Pg Up>",
117: "<Pg Dn>",
115: "<End>",
111: "<Up>",
116: "<Down>",
113: "<Left>",
114: "<Right>",
135: "<Menu>",
23: "<Tab>",
66: "<Caps Lock>",
}
Functions ¶
func StartXGrabber ¶
func StartXGrabber(keys chan int)
StartXGrabber starts the X Keyboard Grabber
keys - channel to send keycodes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.