00001 00006 /* 00007 All original material Copyright (C) 2002-2010 UFO: Alien Invasion. 00008 00009 Original file from Quake 2 v3.21: quake2-2.31/client/ 00010 Copyright (C) 1997-2001 Id Software, Inc. 00011 00012 This program is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU General Public License 00014 as published by the Free Software Foundation; either version 2 00015 of the License, or (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 00021 See the GNU General Public License for more details. 00022 00023 You should have received a copy of the GNU General Public License 00024 along with this program; if not, write to the Free Software 00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 00027 */ 00028 00029 #ifndef CLIENT_INPUT_H 00030 #define CLIENT_INPUT_H 00031 00032 typedef enum { 00033 MS_NULL, 00034 MS_UI, 00035 MS_WORLD, 00036 } mouseSpace_t; 00037 00038 typedef enum { 00039 key_game, 00040 key_console, 00041 key_message 00042 } keydest_t; 00043 00044 #define STATE_FORWARD 1 00045 #define STATE_RIGHT 2 00046 #define STATE_ZOOM 3 00047 #define STATE_ROT 4 00048 #define STATE_TILT 5 00049 00050 extern int mouseSpace; 00051 extern int mousePosX, mousePosY; 00052 00053 void IN_Init(void); 00054 void IN_Frame(void); 00055 void IN_SendKeyEvents(void); 00056 00057 void IN_EventEnqueue(unsigned int key, unsigned short, qboolean down); 00058 float CL_GetKeyMouseState(int dir); 00059 00060 #endif /* CLIENT_INPUT_H */