Back to index

nux  3.0.0
VirtualKeyCodesX11.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2010 Inalogic® Inc.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License, as
00006  * published by the  Free Software Foundation; either version 2.1 or 3.0
00007  * of the License.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranties of
00011  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00012  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00013  * License for more details.
00014  *
00015  * You should have received a copy of both the GNU Lesser General Public
00016  * License along with this program. If not, see <http://www.gnu.org/licenses/>
00017  *
00018  * Authored by: Jay Taoko <jaytaoko@inalogic.com>
00019  *
00020  */
00021 
00022 
00023 #ifndef VIRTUALKEYCODESX11_H
00024 #define VIRTUALKEYCODESX11_H
00025 
00026 namespace nux
00027 {
00028 
00029 // Virtual key codes
00030 // The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.
00031 // Symbolic constant name                                   Value (hex)            Mouse or keyboard equivalents
00032 
00033 #define     NUX_VK_BACKSPACE                                XK_BackSpace                   //   BACKSPACE key
00034 #define     NUX_VK_TAB                                      XK_Tab                   //   TAB key
00035 #define     NUX_VK_LEFT_TAB                                 XK_ISO_Left_Tab          //   SHIFT TAB key
00036 #define     NUX_VK_CLEAR                                    XK_Clear                   //   CLEAR key
00037 #define     NUX_VK_ENTER                                    XK_Return                   //   ENTER key
00038 #define     NUX_VK_SHIFT                                    XK_Shift_L                   //   SHIFT key
00039 #define     NUX_VK_CONTROL                                  XK_Control_L                   //   CTRL key
00040 #define     NUX_VK_MENU                                     XK_Alt_L                   //   ALT key
00041 #define     NUX_VK_PAUSE                                    XK_Pause                   //   PAUSE key
00042 #define     NUX_VK_CAPITAL                                  XK_Caps_Lock                   //   CAPS LOCK key
00043 #define     NUX_VK_ESCAPE                                   XK_Escape                   //   ESC key
00044 #define     NUX_VK_SPACE                                    XK_space                   //   SPACEBAR
00045 #define     NUX_VK_PAGE_UP                                  XK_Page_Up                   //   PAGE UP key
00046 #define     NUX_VK_PAGE_DOWN                                XK_Page_Down                   //   PAGE DOWN key
00047 #define     NUX_VK_END                                      XK_End                   //   END key
00048 #define     NUX_VK_HOME                                     XK_Home                   //   HOME key        
00049 #define     NUX_VK_LEFT                                     XK_Left                   //   LEFT ARROW key
00050 #define     NUX_VK_UP                                       XK_Up                   //   UP ARROW key
00051 #define     NUX_VK_RIGHT                                    XK_Right                   //   RIGHT ARROW key
00052 #define     NUX_VK_DOWN                                     XK_Down                   //   DOWN ARROW key
00053 #define     NUX_VK_PRINT                                    XK_Print                   //   PRINT key
00054 #define     NUX_VK_EXECUTE                                  XK_Execute                   //   EXECUTE key
00055 #define     NUX_VK_INSERT                                   XK_Insert                   //   INS key
00056 #define     NUX_VK_DELETE                                   XK_Delete                   //   DEL key
00057 /*#define     NUX_VK_Multiply                                                       XK_Multiply
00058 #define       NUX_VK_Add                                                            XK_Aadd
00059 #define       NUX_VK_Subtract                                                       XK_Substract
00060 #define       NUX_VK_Decimal                                                        XK_Decimal
00061 #define       NUX_VK_Divide                                                         XK_Divide*/
00062 #define     NUX_VK_0                                        XK_0                      //   0 key
00063 #define     NUX_VK_1                                        XK_1                      //   1 key
00064 #define     NUX_VK_2                                        XK_2                      //   2 key
00065 #define     NUX_VK_3                                        XK_3                      //   3 key
00066 #define     NUX_VK_4                                        XK_4                      //   4 key
00067 #define     NUX_VK_5                                        XK_5                      //   5 key
00068 #define     NUX_VK_6                                        XK_6                      //   6 key
00069 #define     NUX_VK_7                                        XK_7                      //   7 key
00070 #define     NUX_VK_8                                        XK_8                      //   8 key
00071 #define     NUX_VK_9                                        XK_9                      //   9 key
00072 #define     NUX_VK_A                                        XK_A                   //   A key
00073 #define     NUX_VK_B                                        XK_B                   //   B key
00074 #define     NUX_VK_C                                        XK_C                   //   C key
00075 #define     NUX_VK_D                                        XK_D                   //   D key
00076 #define     NUX_VK_E                                        XK_E                   //   E key
00077 #define     NUX_VK_F                                        XK_F                   //   F key
00078 #define     NUX_VK_G                                        XK_G                   //   G key
00079 #define     NUX_VK_H                                        XK_H                   //   H key
00080 #define     NUX_VK_I                                        XK_I                   //   I key
00081 #define     NUX_VK_J                                        XK_J                   //   J key
00082 #define     NUX_VK_K                                        XK_K                   //   K key
00083 #define     NUX_VK_L                                        XK_L                   //   L key
00084 #define     NUX_VK_M                                        XK_M                   //   M key
00085 #define     NUX_VK_N                                        XK_N                   //   N key
00086 #define     NUX_VK_O                                        XK_O                   //   O key
00087 #define     NUX_VK_P                                        XK_P                   //   P key
00088 #define     NUX_VK_Q                                        XK_Q                   //   Q key
00089 #define     NUX_VK_R                                        XK_R                   //   R key
00090 #define     NUX_VK_S                                        XK_S                   //   S key
00091 #define     NUX_VK_T                                        XK_T                   //   T key
00092 #define     NUX_VK_U                                        XK_U                   //   U key
00093 #define     NUX_VK_V                                        XK_V                   //   V key
00094 #define     NUX_VK_W                                        XK_W                   //   W key
00095 #define     NUX_VK_X                                        XK_X                   //   X key
00096 #define     NUX_VK_Y                                        XK_Y                   //   Y key
00097 #define     NUX_VK_Z                                        XK_Z                   //   Z key
00098 #define     NUX_VK_a                                        XK_a
00099 #define     NUX_VK_b                                        XK_b
00100 #define     NUX_VK_c                                        XK_c
00101 #define     NUX_VK_d                                        XK_d
00102 #define     NUX_VK_e                                        XK_e
00103 #define     NUX_VK_f                                        XK_f
00104 #define     NUX_VK_g                                        XK_g
00105 #define     NUX_VK_h                                        XK_h
00106 #define     NUX_VK_i                                        XK_i
00107 #define     NUX_VK_j                                        XK_j
00108 #define     NUX_VK_k                                        XK_k
00109 #define     NUX_VK_l                                        XK_l
00110 #define     NUX_VK_m                                        XK_m
00111 #define     NUX_VK_n                                        XK_n
00112 #define     NUX_VK_o                                        XK_o
00113 #define     NUX_VK_p                                        XK_p
00114 #define     NUX_VK_q                                        XK_q
00115 #define     NUX_VK_r                                        XK_r
00116 #define     NUX_VK_s                                        XK_s
00117 #define     NUX_VK_t                                        XK_t
00118 #define     NUX_VK_u                                        XK_u
00119 #define     NUX_VK_v                                        XK_v
00120 #define     NUX_VK_w                                        XK_w
00121 #define     NUX_VK_x                                        XK_x
00122 #define     NUX_VK_y                                        XK_y
00123 #define     NUX_VK_z                                        XK_z
00124 #define     NUX_VK_LWIN                                     XK_Super_L                   //   Left Windows key (Microsoft Natural Keyboard)
00125 #define     NUX_VK_RWIN                                     XK_Super_R                   //   Right Windows key (Microsoft Natural Keyboard)
00126 #define     NUX_VK_NUMPAD0                                  XK_KP_0                   //   Numeric keypad 0 key
00127 #define     NUX_VK_NUMPAD1                                  XK_KP_1                   //   Numeric keypad 1 key
00128 #define     NUX_VK_NUMPAD2                                  XK_KP_2                   //   Numeric keypad 2 key
00129 #define     NUX_VK_NUMPAD3                                  XK_KP_3                   //   Numeric keypad 3 key
00130 #define     NUX_VK_NUMPAD4                                  XK_KP_4                   //   Numeric keypad 4 key
00131 #define     NUX_VK_NUMPAD5                                  XK_KP_5                   //   Numeric keypad 5 key
00132 #define     NUX_VK_NUMPAD6                                  XK_KP_6                   //   Numeric keypad 6 key
00133 #define     NUX_VK_NUMPAD7                                  XK_KP_7                   //   Numeric keypad 7 key
00134 #define     NUX_VK_NUMPAD8                                  XK_KP_8                   //   Numeric keypad 8 key
00135 #define     NUX_VK_NUMPAD9                                  XK_KP_9                   //   Numeric keypad 9 key
00136 #define     NUX_KP_MULTIPLY                                 XK_KP_Multiply                   //   Multiply key
00137 #define     NUX_KP_ADD                                      XK_KP_Add                   //   Add key
00138 #define     NUX_KP_SEPARATOR                                XK_KP_Separator                   //   Separator key
00139 #define     NUX_KP_SUBTRACT                                 XK_KP_Subtract                   //   Subtract key
00140 #define     NUX_KP_DECIMAL                                  XK_KP_Decimal                   //   Decimal key
00141 #define     NUX_KP_DIVIDE                                   XK_KP_Divide                   //   Divide key
00142 #define       NUX_KP_ENTER                                                                 XK_KP_Enter
00143 #define     NUX_VK_F1                                       XK_F1                   //   F1 key
00144 #define     NUX_VK_F2                                       XK_F2                   //   F2 key
00145 #define     NUX_VK_F3                                       XK_F3                   //   F3 key
00146 #define     NUX_VK_F4                                       XK_F4                   //   F4 key
00147 #define     NUX_VK_F5                                       XK_F5                   //   F5 key
00148 #define     NUX_VK_F6                                       XK_F6                   //   F6 key
00149 #define     NUX_VK_F7                                       XK_F7                   //   F7 key
00150 #define     NUX_VK_F8                                       XK_F8                   //   F8 key
00151 #define     NUX_VK_F9                                       XK_F9                   //   F9 key
00152 #define     NUX_VK_F10                                      XK_F10                   //   F10 key
00153 #define     NUX_VK_F11                                      XK_F11                   //   F11 key
00154 #define     NUX_VK_F12                                      XK_F12                   //   F12 key
00155 #define     NUX_VK_F13                                      XK_F13                   //   F13 key
00156 #define     NUX_VK_F14                                      XK_F14                   //   F14 key
00157 #define     NUX_VK_F15                                      XK_F15                   //   F15 key
00158 #define     NUX_VK_F16                                      XK_F16                   //   F16 key
00159 #define     NUX_VK_F17                                      XK_F17                   //   F17 key
00160 #define     NUX_VK_F18                                      XK_F18                   //   F18 key
00161 #define     NUX_VK_F19                                      XK_F19                   //   F19 key
00162 #define     NUX_VK_F20                                      XK_F20                   //   F20 key
00163 #define     NUX_VK_F21                                      XK_F21                   //   F21 key
00164 #define     NUX_VK_F22                                      XK_F22                   //   F22 key
00165 #define     NUX_VK_F23                                      XK_F23                   //   F23 key
00166 #define     NUX_VK_F24                                      XK_F24                   //   F24 key
00167 #define     NUX_VK_NUMLOCK                                  XK_Num_Lock                   //   NUM LOCK key
00168 #define     NUX_VK_SCROLL                                   XK_Scroll_Lock                   //   SCROLL LOCK key
00169 #define     NUX_VK_LSHIFT                                   XK_Shift_L                   //   Left SHIFT key
00170 #define     NUX_VK_RSHIFT                                   XK_Shift_R                   //   Right SHIFT key
00171 #define     NUX_VK_LCONTROL                                 XK_Control_L                   //   Left CONTROL key
00172 #define     NUX_VK_RCONTROL                                 XK_Control_R                   //   Right CONTROL key
00173 #define     NUX_VK_LMENU                                    XK_Alt_L                   //   Left MENU key
00174 #define     NUX_VK_RMENU                                    XK_Alt_R                   //   Right MENU key
00175 #define     NUX_VK_FF                                       /*0xFF*/                   //   Multimedia keys. See ScanCode keys.
00176 
00177 #define     NUX_MAX_VK      256
00178 
00179 }
00180 
00181 #endif // VIRTUALKEYCODESX11_H
00182