Gateware Libraries  6.3.A
Beta Build
GKeyDefines.h
1 #ifndef GBIGLOBALNAMESPACE_H
2 #define GBIGLOBALNAMESPACE_H
3 
14 #define G_KEY_UNKNOWN 0x00
15 
16 #define G_KEY_ESCAPE 0x1
17 #define G_KEY_MINUS 0x2
18 #define G_KEY_EQUALS 0x3
19 #define G_KEY_BACKSPACE 0x4
20 #define G_KEY_TAB 0x5
21 #define G_KEY_BRACKET_OPEN 0x6
22 #define G_KEY_BRACKET_CLOSE 0x7
23 #define G_KEY_ENTER 0x8
24 #define G_KEY_CONTROL 0x9
25 #define G_KEY_COLON 0xa
26 #define G_KEY_QUOTE 0xb
27 #define G_KEY_TILDE 0xc
28 #define G_KEY_LEFTSHIFT 0xd
29 #define G_KEY_BACKSLASH 0xe
30 #define G_KEY_COMMA 0xf
31 #define G_KEY_PERIOD 0x10
32 #define G_KEY_FOWARDSLASH 0x11
33 #define G_KEY_RIGHTSHIFT 0x12
34 #define G_KEY_PRINTSCREEN 0x13
35 #define G_KEY_LEFTALT 0x14
36 #define G_KEY_RIGHTALT 0x15
37 #define G_KEY_SPACE 0x16
38 #define G_KEY_CAPSLOCK 0x17
39 #define G_KEY_NUMLOCK 0x18
40 #define G_KEY_SCROLL_LOCK 0x19
41 #define G_KEY_HOME 0x1a
42 #define G_KEY_UP 0x1b
43 #define G_KEY_PAGEUP 0x1c
44 #define G_KEY_NUMPAD_MINUS 0x1d
45 #define G_KEY_LEFT 0x1e
46 #define G_KEY_CENTER 0x1f
47 #define G_KEY_RIGHT 0x20
48 #define G_KEY_NUMPAD_PLUS 0x21
49 #define G_KEY_END 0x22
50 #define G_KEY_DOWN 0x23
51 #define G_KEY_PAGEDOWN 0x24
52 #define G_KEY_INSERT 0x25
53 #define G_KEY_DELETE 0x26
54 
55 //Characters
56 #define G_KEY_A 0x27
57 #define G_KEY_B 0x28
58 #define G_KEY_C 0x29
59 #define G_KEY_D 0x2a
60 #define G_KEY_E 0x2b
61 #define G_KEY_F 0x2c
62 #define G_KEY_G 0x2d
63 #define G_KEY_H 0x2e
64 #define G_KEY_I 0x2f
65 #define G_KEY_J 0x30
66 #define G_KEY_K 0x31
67 #define G_KEY_L 0x32
68 #define G_KEY_M 0x33
69 #define G_KEY_N 0x34
70 #define G_KEY_O 0x35
71 #define G_KEY_P 0x36
72 #define G_KEY_Q 0x37
73 #define G_KEY_R 0x38
74 #define G_KEY_S 0x39
75 #define G_KEY_T 0x3a
76 #define G_KEY_U 0x3b
77 #define G_KEY_V 0x3c
78 #define G_KEY_W 0x3d
79 #define G_KEY_X 0x3e
80 #define G_KEY_Y 0x3f
81 #define G_KEY_Z 0x40
82 
83 //Numbers
84 #define G_KEY_0 0x41
85 #define G_KEY_1 0x42
86 #define G_KEY_2 0x43
87 #define G_KEY_3 0x44
88 #define G_KEY_4 0x45
89 #define G_KEY_5 0x46
90 #define G_KEY_6 0x47
91 #define G_KEY_7 0x48
92 #define G_KEY_8 0x49
93 #define G_KEY_9 0x4a
94 
95 //Function Keys
96 #define G_KEY_F1 0x4b
97 #define G_KEY_F2 0x4c
98 #define G_KEY_F3 0x4d
99 #define G_KEY_F4 0x4e
100 #define G_KEY_F5 0x4f
101 #define G_KEY_F6 0x50
102 #define G_KEY_F7 0x51
103 #define G_KEY_F8 0x52
104 #define G_KEY_F9 0x53
105 #define G_KEY_F10 0x54
106 #define G_KEY_F11 0x55
107 #define G_KEY_F12 0x56
108 
109 //PEMDAS
110 #define G_KEY_ADD 0x57
111 #define G_KEY_MULTIPLY 0x59
112 #define G_KEY_DIVIDE 0x5a
113 
114 //Button Keys
115 #define G_BUTTON_LEFT 0x64
116 #define G_BUTTON_RIGHT 0x65
117 #define G_BUTTON_MIDDLE 0x66
118 #define G_MOUSE_SCROLL_UP 0x67
119 #define G_MOUSE_SCROLL_DOWN 0x68
120 
121 //Key Masks
122 #define G_MASK_SHIFT 0x0
123 #define G_MASK_CAPS_LOCK 0x1
124 #define G_MASK_CONTROL 0x2
125 #define G_MASK_SCROLL_LOCK 0x3
126 #define G_MASK_NUM_LOCK 0x4
127 #define G_MASK_COMMAND 0x5
128 #define G_MASK_ALT 0x6
129 #define G_MASK_FUNCTION 0x7
130 
132 namespace GW
133 {
135  namespace SYSTEM
136  {
137 #pragma pack(push, 1)
138  struct LINUX_WINDOW
140  {
141  void* window; /*< window Void pointer storing the window handle. */
142  void* display; /*< display Void pointer storing the display handle. */
143  };
144 
145 #pragma pack(pop)
146  } // end SYSTEM namespace
147 
148 } // end GW namespace
149 
150 #endif
151 
152 
The core namespace to which all Gateware interfaces/structures/defines must belong.
Definition: GAudio.h:20