Root/include/keys.hhp

1#pypp 0
2// Iris: micro-kernel for a capability-based operating system.
3// boot-programs/keys.hhp: Keycode definitions.
4// Copyright 2009 Bas Wijnen <wijnen@debian.org>
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the GNU General Public License as published by
8// the Free Software Foundation, either version 3 of the License, or
9// (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19#ifndef __KEYS_HH
20#define __KEYS_HH
21
22namespace Key:
23    enum codes:
24        N0 = '0'
25        N1 = '1'
26        N2 = '2'
27        N3 = '3'
28        N4 = '4'
29        N5 = '5'
30        N6 = '6'
31        N7 = '7'
32        N8 = '8'
33        N9 = '9'
34        A = 'a'
35        B = 'b'
36        C = 'c'
37        D = 'd'
38        E = 'e'
39        F = 'f'
40        G = 'g'
41        H = 'h'
42        I = 'i'
43        J = 'j'
44        K = 'k'
45        L = 'l'
46        M = 'm'
47        N = 'n'
48        O = 'o'
49        P = 'p'
50        Q = 'q'
51        R = 'r'
52        S = 's'
53        T = 't'
54        U = 'u'
55        V = 'v'
56        W = 'w'
57        X = 'x'
58        Y = 'y'
59        Z = 'z'
60        ESCAPE = 27
61        ENTER = '\n'
62        TAB = '\t'
63        COMMA = ','
64        PERIOD = '.'
65        SLASH = '/'
66        BACKSLASH = '\\'
67        SEMICOLON = ';'
68        QUOTE = '\''
69        BACKQUOTE = '`'
70        OPEN_BRACKET = '['
71        CLOSE_BRACKET = ']'
72        MINUS = '-'
73        EQUALS = '='
74        BACKSPACE = 8
75        HOME = 11
76        DELETE = 127
77        SPACE = ' '
78        KP_0 = 0x100
79        KP_1
80        KP_2
81        KP_3
82        KP_4
83        KP_5
84        KP_6
85        KP_7
86        KP_8
87        KP_9
88        KP_PERIOD = '.' + 0x100
89        KP_ENTER = '\n' + 0x100
90        KP_PLUS = '+' + 0x100
91        KP_MINUS = '-' + 0x100
92        KP_MULTIPLY = '*' + 0x100
93        KP_DIVIDE = '/' + 0x100
94        FN = 0x200
95        F1
96        F2
97        F3
98        F4
99        F5
100        F6
101        F7
102        F8
103        F9
104        F10
105        F11
106        F12
107        F13
108        F14
109        F15
110        F16
111        F17
112        F18
113        F19
114        F20
115        F21
116        F22
117        F23
118        F24
119        POWER_OFF
120        SLEEP
121        WAKE_UP
122        VOLUME_UP
123        VOLUME_DOWN
124        UP
125        DOWN
126        LEFT
127        RIGHT
128        INSERT
129        END
130        PAGE_UP
131        PAGE_DOWN
132        PRINT_SCREEN
133        PAUSE
134        CAPS_LOCK
135        NUM_LOCK
136        SCROLL_LOCK
137        LEFT_SHIFT
138        RIGHT_SHIFT
139        LEFT_CONTROL
140        RIGHT_CONTROL
141        LEFT_ALT
142        RIGHT_ALT
143        LEFT_LOGO
144        RIGHT_LOGO
145        MENU
146        SPECIAL
147#endif
148

Archive Download this file

Branches:
master



interactive