UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_input.h
Go to the documentation of this file.
1 
6 /*
7 All original material Copyright (C) 2002-2020 UFO: Alien Invasion.
8 
9 Original file from Quake 2 v3.21: quake2-2.31/client/
10 Copyright (C) 1997-2001 Id Software, Inc.
11 
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
16 
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 
21 See the GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 
27 */
28 
29 #pragma once
30 
31 typedef enum {
37 } mouseSpace_t;
38 
39 #define STATE_FORWARD 1
40 #define STATE_RIGHT 2
41 #define STATE_ZOOM 3
42 #define STATE_ROT 4
43 #define STATE_TILT 5
44 
46 extern int mousePosX, mousePosY;
47 
48 #define IN_GetMouseSpace() mouseSpace
49 
50 void IN_Init(void);
51 void IN_Frame(void);
52 void IN_SendKeyEvents(void);
54 
55 void IN_EventEnqueue(unsigned int key, unsigned short, bool down);
56 float CL_GetKeyMouseState(int dir);
void IN_EventEnqueue(unsigned int key, unsigned short, bool down)
Definition: cl_input.cpp:905
float CL_GetKeyMouseState(int dir)
Definition: cl_input.cpp:546
int mousePosY
Definition: cl_input.cpp:80
mouseSpace_t mouseSpace
Definition: cl_input.cpp:79
void IN_SetMouseSpace(mouseSpace_t mouseSpace)
Definition: cl_input.cpp:1195
unsigned int key
Definition: cl_input.cpp:68
mouseSpace_t
Definition: cl_input.h:31
int mousePosX
Definition: cl_input.cpp:80
void IN_Init(void)
Definition: cl_input.cpp:1212
int down
Definition: cl_input.cpp:70
Definition: cl_input.h:33
void IN_SendKeyEvents(void)
Definition: cl_input.cpp:1284
void IN_Frame(void)
Handle input events like key presses and joystick movement as well as window events.
Definition: cl_input.cpp:946