keycodes.h

00001 /*****************************************************************
00002  * gmerlin - a general purpose multimedia framework and applications
00003  *
00004  * Copyright (c) 2001 - 2010 Members of the Gmerlin project
00005  * gmerlin-general@lists.sourceforge.net
00006  * http://gmerlin.sourceforge.net
00007  *
00008  * This program is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00020  * *****************************************************************/
00021 
00022 /*
00023  *  System independent keycode definitions
00024  */
00025 
00032 #define BG_KEY_SHIFT_MASK    (1<<0) //!< Shift
00033 #define BG_KEY_CONTROL_MASK  (1<<1) //!< Control
00034 #define BG_KEY_ALT_MASK      (1<<2) //!< Alt
00035 #define BG_KEY_SUPER_MASK    (1<<3) //!< Windows key is called "Super" under X11
00036 #define BG_KEY_BUTTON1_MASK  (1<<4) //!< Mouse button 1
00037 #define BG_KEY_BUTTON2_MASK  (1<<5) //!< Mouse button 2
00038 #define BG_KEY_BUTTON3_MASK  (1<<6) //!< Mouse button 3
00039 #define BG_KEY_BUTTON4_MASK  (1<<7) //!< Mouse button 4
00040 #define BG_KEY_BUTTON5_MASK  (1<<8) //!< Mouse button 5
00041 
00042 #define BG_KEY_NONE      -1 //!< Undefined
00043 
00044 #define BG_KEY_0          0 //!< 0
00045 #define BG_KEY_1          1 //!< 1
00046 #define BG_KEY_2          2 //!< 2
00047 #define BG_KEY_3          3 //!< 3
00048 #define BG_KEY_4          4 //!< 4
00049 #define BG_KEY_5          5 //!< 5
00050 #define BG_KEY_6          6 //!< 6
00051 #define BG_KEY_7          7 //!< 7
00052 #define BG_KEY_8          8 //!< 8
00053 #define BG_KEY_9          9 //!< 9
00054 
00055 #define BG_KEY_SPACE      10 //!< Space
00056 #define BG_KEY_RETURN     11 //!< Return (Enter)
00057 #define BG_KEY_LEFT       12 //!< Left
00058 #define BG_KEY_RIGHT      13 //!< Right
00059 #define BG_KEY_UP         14 //!< Up
00060 #define BG_KEY_DOWN       15 //!< Down
00061 #define BG_KEY_PAGE_UP    16 //!< Page Up
00062 #define BG_KEY_PAGE_DOWN  17 //!< Page Down
00063 #define BG_KEY_HOME       18 //!< Page Down
00064 #define BG_KEY_PLUS       19 //!< Plus
00065 #define BG_KEY_MINUS      20 //!< Minus
00066 #define BG_KEY_TAB        21 //!< Tab
00067 #define BG_KEY_ESCAPE     22 //!< Esc
00068 #define BG_KEY_MENU       23 //!< Menu key
00069 
00070 #define BG_KEY_QUESTION   24 //!< ?
00071 #define BG_KEY_EXCLAM     25 //!< !
00072 #define BG_KEY_QUOTEDBL   26 //!< "
00073 #define BG_KEY_DOLLAR     27 //!< $
00074 #define BG_KEY_PERCENT    28 //!< %
00075 #define BG_KEY_APMERSAND  29 //!< &
00076 #define BG_KEY_SLASH      30 //!< /
00077 #define BG_KEY_LEFTPAREN  31 //!< (
00078 #define BG_KEY_RIGHTPAREN 32 //!< )
00079 #define BG_KEY_EQUAL      33 //!< =
00080 #define BG_KEY_BACKSLASH  34 //!< :-)
00081 
00082 #define BG_KEY_A 101 //!< A
00083 #define BG_KEY_B 102 //!< B
00084 #define BG_KEY_C 103 //!< C
00085 #define BG_KEY_D 104 //!< D
00086 #define BG_KEY_E 105 //!< E
00087 #define BG_KEY_F 106 //!< F
00088 #define BG_KEY_G 107 //!< G
00089 #define BG_KEY_H 108 //!< H
00090 #define BG_KEY_I 109 //!< I
00091 #define BG_KEY_J 110 //!< J
00092 #define BG_KEY_K 111 //!< K
00093 #define BG_KEY_L 112 //!< L
00094 #define BG_KEY_M 113 //!< M
00095 #define BG_KEY_N 114 //!< N
00096 #define BG_KEY_O 115 //!< O
00097 #define BG_KEY_P 116 //!< P
00098 #define BG_KEY_Q 117 //!< Q
00099 #define BG_KEY_R 118 //!< R
00100 #define BG_KEY_S 119 //!< S
00101 #define BG_KEY_T 120 //!< T
00102 #define BG_KEY_U 121 //!< U
00103 #define BG_KEY_V 122 //!< V
00104 #define BG_KEY_W 123 //!< W
00105 #define BG_KEY_X 124 //!< X
00106 #define BG_KEY_Y 125 //!< Y
00107 #define BG_KEY_Z 126 //!< Z
00108 
00109 #define BG_KEY_a 201 //!< a
00110 #define BG_KEY_b 202 //!< b
00111 #define BG_KEY_c 203 //!< c
00112 #define BG_KEY_d 204 //!< d
00113 #define BG_KEY_e 205 //!< e
00114 #define BG_KEY_f 206 //!< f
00115 #define BG_KEY_g 207 //!< g
00116 #define BG_KEY_h 208 //!< h
00117 #define BG_KEY_i 209 //!< i
00118 #define BG_KEY_j 210 //!< j
00119 #define BG_KEY_k 211 //!< k
00120 #define BG_KEY_l 212 //!< l
00121 #define BG_KEY_m 213 //!< m
00122 #define BG_KEY_n 214 //!< n
00123 #define BG_KEY_o 215 //!< o
00124 #define BG_KEY_p 216 //!< p
00125 #define BG_KEY_q 217 //!< q
00126 #define BG_KEY_r 218 //!< r
00127 #define BG_KEY_s 219 //!< s
00128 #define BG_KEY_t 220 //!< t
00129 #define BG_KEY_u 221 //!< u
00130 #define BG_KEY_v 222 //!< v
00131 #define BG_KEY_w 223 //!< w
00132 #define BG_KEY_x 224 //!< x
00133 #define BG_KEY_y 225 //!< y
00134 #define BG_KEY_z 226 //!< z
00135 
00136 
00137 #define BG_KEY_F1  301 //!< F1
00138 #define BG_KEY_F2  302 //!< F2
00139 #define BG_KEY_F3  303 //!< F3
00140 #define BG_KEY_F4  304 //!< F4
00141 #define BG_KEY_F5  305 //!< F5
00142 #define BG_KEY_F6  306 //!< F6
00143 #define BG_KEY_F7  307 //!< F7
00144 #define BG_KEY_F8  308 //!< F8
00145 #define BG_KEY_F9  309 //!< F9
00146 #define BG_KEY_F10 310 //!< F10
00147 #define BG_KEY_F11 311 //!< F11
00148 #define BG_KEY_F12 312 //!< F12
00149 
Generated on Sun Feb 28 07:34:31 2010 for gmerlin by  doxygen 1.6.3