UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_input.h
Go to the documentation of this file.
1
5
6/*
7All original material Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9Original file from Quake 2 v3.21: quake2-2.31/client/
10Copyright (C) 1997-2001 Id Software, Inc.
11
12This program is free software; you can redistribute it and/or
13modify it under the terms of the GNU General Public License
14as published by the Free Software Foundation; either version 2
15of the License, or (at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
21See the GNU General Public License for more details.
22
23You should have received a copy of the GNU General Public License
24along with this program; if not, write to the Free Software
25Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27*/
28
29#pragma once
30
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
46extern int mousePosX, mousePosY;
47
48#define IN_GetMouseSpace() mouseSpace
49
50void IN_Init(void);
51void IN_Frame(void);
52void IN_SendKeyEvents(void);
54
55void IN_EventEnqueue(unsigned int key, unsigned short, bool down);
56float CL_GetKeyMouseState(int dir);
int mousePosY
Definition cl_input.cpp:76
mouseSpace_t mouseSpace
Definition cl_input.cpp:75
unsigned int key
Definition cl_input.cpp:64
int down
Definition cl_input.cpp:66
int mousePosX
Definition cl_input.cpp:76
void IN_EventEnqueue(unsigned int key, unsigned short, bool down)
Definition cl_input.cpp:832
void IN_Frame(void)
Handle input events like key presses and joystick movement as well as window events.
Definition cl_input.cpp:859
float CL_GetKeyMouseState(int dir)
Definition cl_input.cpp:542
void IN_Init(void)
mouseSpace_t
Definition cl_input.h:31
@ MS_WORLD
Definition cl_input.h:34
@ MS_MAX
Definition cl_input.h:36
@ MS_UI
Definition cl_input.h:33
@ MS_NULL
Definition cl_input.h:32
void IN_SetMouseSpace(mouseSpace_t mouseSpace)
void IN_SendKeyEvents(void)