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.

Defines

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

Enumerations

enum  mouseSpace_t { MS_NULL, MS_UI, MS_WORLD }
enum  keydest_t { key_game, key_console, key_message }

Functions

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

Variables

int mouseSpace
int mousePosX
int mousePosY

Detailed Description

External (non-keyboard) input devices.

Definition in file cl_input.h.


Define Documentation

#define STATE_FORWARD   1

Definition at line 44 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_RIGHT   2

Definition at line 45 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_ROT   4

Definition at line 47 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_TILT   5

Definition at line 48 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().

#define STATE_ZOOM   3

Definition at line 46 of file cl_input.h.

Referenced by CL_CameraMove(), and CL_GetKeyMouseState().


Enumeration Type Documentation

enum keydest_t
Enumerator:
key_game 

input focus is on the menu (or the keyBindings)

key_console 

console is opened

key_message 

chatting

Definition at line 38 of file cl_input.h.

Enumerator:
MS_NULL 
MS_UI 

we are over some menu node

MS_WORLD 

we are in tactical mode

Definition at line 32 of file cl_input.h.


Function Documentation

float CL_GetKeyMouseState ( int  dir  ) 
void IN_EventEnqueue ( unsigned int  key,
unsigned  short,
qboolean  down 
)

Definition at line 740 of file cl_input.c.

References Com_Printf(), cvar_s::integer, Key_KeynumToString(), keyq, keyq_head, and MAX_KEYQ.

Referenced by IN_Frame(), and IN_JoystickMove().

void IN_Frame ( void   ) 
void IN_Init ( void   ) 
void IN_SendKeyEvents ( void   ) 
See also:
CL_SendCommand

Definition at line 963 of file cl_input.c.

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

Referenced by CL_SendCommand(), and CL_ViewLoadMedia().


Variable Documentation

int mousePosX
int mousePosY

Generated by  doxygen 1.6.2