Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

input.h

Go to the documentation of this file.
00001 // OMICRON ENGINE HEADER FILE
00002 //
00003 // --------------------------------------------------------------------------
00004 // Copyright (C) 2001-2002 by Bjoern Paetzel <kolrabi@gmx.de>
00005 //
00006 // This file is part of the Omicron Engine.
00007 //
00008 // The Omicron Engine is free software; you can redistribute it and/or modify
00009 // it under the terms of the  GNU General Public License  as published by the
00010 // Free Software Foundation;  either version  2  of the License,  or (at your
00011 // option) any later version.
00012 //
00013 // The Omicron Engine  is distributed in the hope that it will be useful, but
00014 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00015 // or  FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License
00016 // for more details.
00017 //
00018 // You should have  received a copy of the  GNU General Public License  along
00019 // with The Omicron Engine;  if not,  write to the  Free Software Foundation,
00020 // Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
00021 //
00022 // --------------------------------------------------------------------------
00023 // Last modified:       $Date: 2002/12/07 19:02:17 $
00024 // By           :       $Author: kolrabi $
00025 // $Id: input.h,v 1.1.1.1 2002/12/07 19:02:17 kolrabi Exp $ 
00026 
00027 /*
00028 
00029   $Log: input.h,v $
00030   Revision 1.1.1.1  2002/12/07 19:02:17  kolrabi
00031   initial release
00032 
00033 
00034 */
00035 
00041 /****************************************************************************
00042  ****************************************************************************
00043  * DEFINES ******************************************************************
00044  ****************************************************************************
00045  ****************************************************************************/
00046 
00047 #define             OK_ESCAPE                0x01 
00048 #define             OK_F1                    0x3B 
00049 #define             OK_F2                    0x3C 
00050 #define             OK_F3                    0x3D 
00051 #define             OK_F4                    0x3E 
00052 #define             OK_F5                    0x3F 
00053 #define             OK_F6                    0x40 
00054 #define             OK_F7                    0x41 
00055 #define             OK_F8                    0x42 
00056 #define             OK_F9                    0x43 
00057 #define             OK_F10                   0x44 
00058 #define             OK_F11                   0x57 
00059 #define             OK_F12                   0x58 
00060 #define             OK_PRINT                 0x67 
00061 #define             OK_ROLL                  0x46 
00062 #define             OK_PAUSE                 0x66 
00063  
00064 #define             OK_TILDE                 0x29 
00065 #define             OK_1                     0x02 
00066 #define             OK_2                     0x03 
00067 #define             OK_3                     0x04 
00068 #define             OK_4                     0x05 
00069 #define             OK_5                     0x06 
00070 #define             OK_6                     0x07 
00071 #define             OK_7                     0x08 
00072 #define             OK_8                     0x09 
00073 #define             OK_9                     0x0A 
00074 #define             OK_0                     0x0B 
00075 #define             OK_MINUS                 0x0C 
00076 #define             OK_EQUALS                0x0D 
00077 #define             OK_BACKSPACE             0x0E 
00078 #define             OK_INSERT                0x62 
00079 #define             OK_HOME                  0x59 
00080 #define             OK_PGUP                  0x5B 
00081 #define             OK_NUMLOCK               0x45 
00082 #define             OK_NUMDIV                0x68 
00083 #define             OK_NUMMULT               0x37 
00084 #define             OK_NUMMINUS              0x4A 
00085  
00086 #define             OK_TAB                   0x0F 
00087 #define             OK_Q                     0x10 
00088 #define             OK_W                     0x11 
00089 #define             OK_E                     0x12 
00090 #define             OK_R                     0x13 
00091 #define             OK_T                     0x14 
00092 #define             OK_Y                     0x15 
00093 #define             OK_U                     0x16 
00094 #define             OK_I                     0x17 
00095 #define             OK_O                     0x18 
00096 #define             OK_P                     0x19 
00097 #define             OK_LEFTBRACKET           0x1A // [ 
00098 #define             OK_RIGHTBRACKET          0x1B // ] 
00099 #define             OK_RETURN                0x1C 
00100 #define             OK_DELETE                0x63 
00101 #define             OK_END                   0x5F 
00102 #define             OK_PGDN                  0x61 
00103 #define             OK_NUM7                  0x47 
00104 #define             OK_NUM8                  0x48 
00105 #define             OK_NUM9                  0x49 
00106 #define             OK_NUMADD                0x4E 
00107  
00108 #define             OK_CAPSLOCK              0x3A 
00109 #define             OK_A                     0x1E 
00110 #define             OK_S                     0x1F 
00111 #define             OK_D                     0x20 
00112 #define             OK_F                     0x21 
00113 #define             OK_G                     0x22 
00114 #define             OK_H                     0x23 
00115 #define             OK_J                     0x24 
00116 #define             OK_K                     0x25 
00117 #define             OK_L                     0x26 
00118 #define             OK_COLON                 0x27 
00119 #define             OK_APOSTROPHE            0x28 
00120 #define             OK_BACKSLASH             0x2B 
00121 #define             OK_NUM4                  0x4B 
00122 #define             OK_NUM5                  0x4C 
00123 #define             OK_NUM6                  0x4D 
00124  
00125 #define             OK_LSHIFT                0x2A 
00126 #define             OK_PIPE                  0x56 
00127 #define             OK_Z                     0x2C 
00128 #define             OK_X                     0x2D 
00129 #define             OK_C                     0x2E 
00130 #define             OK_V                     0x2F 
00131 #define             OK_B                     0x30 
00132 #define             OK_N                     0x31 
00133 #define             OK_M                     0x32 
00134 #define             OK_COMMA                 0x33 
00135 #define             OK_POINT                 0x34 
00136 #define             OK_SLASH                 0x35 
00137 #define             OK_RSHIFT                0x36 
00138 #define             OK_UP                    0x5A 
00139 #define             OK_NUM1                  0x4F 
00140 #define             OK_NUM2                  0x50 
00141 #define             OK_NUM3                  0x51 
00142 #define             OK_NUMENTER              0x64 
00143  
00144 #define             OK_LCTRL                 0x1D 
00145 #define             OK_LALT                  0x38 
00146 #define             OK_SPACE                 0x39 
00147 #define             OK_RALT                  0x69 
00148 #define             OK_RCTRL                 0x65 
00149 #define             OK_LEFT                  0x5C 
00150 #define             OK_DOWN                  0x60 
00151 #define             OK_RIGHT                 0x5E 
00152 #define             OK_NUM0                  0x52 
00153 #define             OK_NUMPOINT              0x53 
00154 
00155 #define INPUT_KEYPRESSED(a)       (gv.kbdstate[a] && !gv.lkbdstate[a])
00156 #define INPUT_KEYRELEASED(a)      (!gv.kbdstate[a] && gv.lkbdstate[a])

Generated on Wed Dec 18 15:48:46 2002 for omicron engine by doxygen1.2.18