Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

keycodes.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 //
00023 #ifndef __KEYCODES_H__
00024 #define __KEYCODES_H__
00025 
00026 //
00027 // these are the key numbers that should be passed to KeyEvent
00028 //
00029 
00030 // normal keys should be passed as lowercased ascii
00031 
00032 typedef enum {
00033     K_TAB = 9,
00034     K_ENTER = 13,
00035     K_ESCAPE = 27,
00036     K_SPACE = 32,
00037 
00038     K_BACKSPACE = 127,
00039 
00040     K_COMMAND = 128,
00041     K_CAPSLOCK,
00042     K_POWER,
00043     K_PAUSE,
00044 
00045     K_UPARROW,
00046     K_DOWNARROW,
00047     K_LEFTARROW,
00048     K_RIGHTARROW,
00049 
00050     K_ALT,
00051     K_CTRL,
00052     K_SHIFT,
00053     K_INS,
00054     K_DEL,
00055     K_PGDN,
00056     K_PGUP,
00057     K_HOME,
00058     K_END,
00059 
00060     K_F1,
00061     K_F2,
00062     K_F3,
00063     K_F4,
00064     K_F5,
00065     K_F6,
00066     K_F7,
00067     K_F8,
00068     K_F9,
00069     K_F10,
00070     K_F11,
00071     K_F12,
00072     K_F13,
00073     K_F14,
00074     K_F15,
00075 
00076     K_KP_HOME,
00077     K_KP_UPARROW,
00078     K_KP_PGUP,
00079     K_KP_LEFTARROW,
00080     K_KP_5,
00081     K_KP_RIGHTARROW,
00082     K_KP_END,
00083     K_KP_DOWNARROW,
00084     K_KP_PGDN,
00085     K_KP_ENTER,
00086     K_KP_INS,
00087     K_KP_DEL,
00088     K_KP_SLASH,
00089     K_KP_MINUS,
00090     K_KP_PLUS,
00091     K_KP_NUMLOCK,
00092     K_KP_STAR,
00093     K_KP_EQUALS,
00094 
00095     K_MOUSE1,
00096     K_MOUSE2,
00097     K_MOUSE3,
00098     K_MOUSE4,
00099     K_MOUSE5,
00100 
00101     K_MWHEELDOWN,
00102     K_MWHEELUP,
00103 
00104     K_JOY1,
00105     K_JOY2,
00106     K_JOY3,
00107     K_JOY4,
00108     K_JOY5,
00109     K_JOY6,
00110     K_JOY7,
00111     K_JOY8,
00112     K_JOY9,
00113     K_JOY10,
00114     K_JOY11,
00115     K_JOY12,
00116     K_JOY13,
00117     K_JOY14,
00118     K_JOY15,
00119     K_JOY16,
00120     K_JOY17,
00121     K_JOY18,
00122     K_JOY19,
00123     K_JOY20,
00124     K_JOY21,
00125     K_JOY22,
00126     K_JOY23,
00127     K_JOY24,
00128     K_JOY25,
00129     K_JOY26,
00130     K_JOY27,
00131     K_JOY28,
00132     K_JOY29,
00133     K_JOY30,
00134     K_JOY31,
00135     K_JOY32,
00136 
00137     K_AUX1,
00138     K_AUX2,
00139     K_AUX3,
00140     K_AUX4,
00141     K_AUX5,
00142     K_AUX6,
00143     K_AUX7,
00144     K_AUX8,
00145     K_AUX9,
00146     K_AUX10,
00147     K_AUX11,
00148     K_AUX12,
00149     K_AUX13,
00150     K_AUX14,
00151     K_AUX15,
00152     K_AUX16,
00153 
00154     K_LAST_KEY      // this had better be <256!
00155 } keyNum_t;
00156 
00157 
00158 // The menu code needs to get both key and char events, but
00159 // to avoid duplicating the paths, the char events are just
00160 // distinguished by or'ing in K_CHAR_FLAG (ugly)
00161 #define K_CHAR_FLAG     1024
00162 
00163 #endif

Generated on Thu Aug 25 12:37:39 2005 for Quake III Arena by  doxygen 1.3.9.1