UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cl_input.h File Reference

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

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

#define STATE_FORWARD   1

Definition at line 39 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_RIGHT   2

Definition at line 40 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_ROT   4

Definition at line 42 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_TILT   5

Definition at line 43 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_ZOOM   3

Definition at line 41 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

Enumeration Type Documentation

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

void IN_EventEnqueue ( unsigned int  key,
unsigned  short,
bool  down 
)
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().

Variable Documentation

mouseSpace_t mouseSpace

Definition at line 79 of file cl_input.cpp.

Referenced by IN_SetMouseSpace().