UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_input.h File Reference

External (non-keyboard) input devices. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STATE_FORWARD   1
#define STATE_RIGHT   2
#define STATE_ZOOM   3
#define STATE_ROT   4
#define STATE_TILT   5
#define IN_GetMouseSpace()

Enumerations

enum  mouseSpace_t { MS_NULL , MS_UI , MS_WORLD , MS_MAX }

Functions

void IN_Init (void)
void IN_Frame (void)
 Handle input events like key presses and joystick movement as well as window events.
void IN_SendKeyEvents (void)
void IN_SetMouseSpace (mouseSpace_t mouseSpace)
void IN_EventEnqueue (unsigned int key, unsigned short, bool down)
float CL_GetKeyMouseState (int dir)

Variables

mouseSpace_t mouseSpace
int mousePosX
int mousePosY

Detailed Description

External (non-keyboard) input devices.

Definition in file cl_input.h.

Macro Definition Documentation

◆ IN_GetMouseSpace

◆ STATE_FORWARD

#define STATE_FORWARD   1

Definition at line 39 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

◆ STATE_RIGHT

#define STATE_RIGHT   2

Definition at line 40 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

◆ STATE_ROT

#define STATE_ROT   4

Definition at line 42 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

◆ STATE_TILT

#define STATE_TILT   5

Definition at line 43 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

◆ STATE_ZOOM

#define STATE_ZOOM   3

Definition at line 41 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

Enumeration Type Documentation

◆ mouseSpace_t

Enumerator
MS_NULL 
MS_UI 

we are over some menu node

MS_WORLD 

we are in tactical mode

MS_MAX 

Definition at line 31 of file cl_input.h.

Function Documentation

◆ CL_GetKeyMouseState()

◆ IN_EventEnqueue()

void IN_EventEnqueue ( unsigned int key,
unsigned short keyUnicode,
bool down )

Definition at line 832 of file cl_input.cpp.

References Com_Printf(), in_debug, Key_KeynumToString(), keyDown, keyq, keyq_head, and MAX_KEYQ.

Referenced by CL_PressKey_f(), IN_Frame(), and IN_JoystickMove().

◆ IN_Frame()

◆ IN_Init()

◆ IN_SendKeyEvents()

void IN_SendKeyEvents ( void )
See also
CL_SendCommand

Definition at line 1139 of file cl_input.cpp.

References CL_Milliseconds(), down, key, Key_Event(), keyq, keyq_head, keyq_tail, MAX_KEYQ, and unicode.

Referenced by CL_SendCommand().

◆ IN_SetMouseSpace()

void IN_SetMouseSpace ( mouseSpace_t mouseSpace)

Variable Documentation

◆ mousePosX

◆ mousePosY

int mousePosY

Definition at line 46 of file cl_input.h.

◆ mouseSpace

mouseSpace_t mouseSpace
extern

Definition at line 75 of file cl_input.cpp.

Referenced by IN_SetMouseSpace().