UFO: Alien Invasion
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()   mouseSpace
 

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. More...
 
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

#define IN_GetMouseSpace ( )    mouseSpace

Definition at line 48 of file cl_input.h.

◆ STATE_FORWARD

#define STATE_FORWARD   1

Definition at line 39 of file cl_input.h.

◆ STATE_RIGHT

#define STATE_RIGHT   2

Definition at line 40 of file cl_input.h.

◆ STATE_ROT

#define STATE_ROT   4

Definition at line 42 of file cl_input.h.

◆ STATE_TILT

#define STATE_TILT   5

Definition at line 43 of file cl_input.h.

◆ STATE_ZOOM

#define STATE_ZOOM   3

Definition at line 41 of file cl_input.h.

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 
)

◆ IN_Frame()

◆ IN_Init()

◆ IN_SendKeyEvents()

void IN_SendKeyEvents ( void  )
See also
CL_SendCommand

Definition at line 1284 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()

Variable Documentation

◆ mousePosX

◆ mousePosY

int mousePosY

Definition at line 46 of file cl_input.h.

◆ mouseSpace

mouseSpace_t mouseSpace
extern

Definition at line 79 of file cl_input.cpp.

Referenced by IN_SetMouseSpace().