QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
joy.c File Reference

Functions

void joy_clear_axis (int i)
 
void JOY_Command (void)
 
int JOY_GetAxis_i (int dest, const char *c)
 
const char * JOY_GetDest_c (int i)
 
int JOY_GetDest_i (const char *c)
 
const char * JOY_GetOption_c (int i)
 
int JOY_GetOption_i (const char *c)
 
void JOY_Init (void)
 
void JOY_Init_Cvars (void)
 
void JOY_Move (void)
 
void JOY_Shutdown (void)
 
void Joy_WriteBindings (QFile *f)
 

Variables

qboolean joy_active = false
 
cvar_tjoy_amp
 
struct joy_axis joy_axes [JOY_MAX_AXES]
 
struct joy_button joy_buttons [JOY_MAX_BUTTONS]
 
cvar_tjoy_device
 
cvar_tjoy_enable
 
qboolean joy_found = false
 
cvar_tjoy_pre_amp
 
js_axis_t js_angles_names []
 
js_axis_t * js_axis_names []
 
js_dests_t js_dests []
 
js_opts_t js_opts []
 
js_axis_t js_position_names []
 

Function Documentation

void joy_clear_axis ( int  i)
void JOY_Command ( void  )
int JOY_GetAxis_i ( int  dest,
const char *  c 
)
const char* JOY_GetDest_c ( int  i)
int JOY_GetDest_i ( const char *  c)
const char* JOY_GetOption_c ( int  i)
int JOY_GetOption_i ( const char *  c)
void JOY_Init ( void  )
void JOY_Init_Cvars ( void  )
void JOY_Move ( void  )
void JOY_Shutdown ( void  )
void Joy_WriteBindings ( QFile f)

Variable Documentation

qboolean joy_active = false
cvar_t* joy_amp
struct joy_axis joy_axes[JOY_MAX_AXES]
struct joy_button joy_buttons[JOY_MAX_BUTTONS]
cvar_t* joy_device
cvar_t* joy_enable
qboolean joy_found = false
cvar_t* joy_pre_amp
js_axis_t js_angles_names[]
Initial value:
= {
{"pitch", PITCH},
{"yaw", YAW},
{"roll", ROLL},
{"p", PITCH},
{"y", YAW},
{"r", ROLL},
{0, 0}
}
#define ROLL
Definition: mathlib.h:74
#define PITCH
Definition: mathlib.h:70
#define YAW
Definition: mathlib.h:72
js_axis_t* js_axis_names[]
Initial value:
= {
0,
0,
}
js_axis_t js_angles_names[]
Definition: joy.c:230
js_axis_t js_position_names[]
Definition: joy.c:223
js_dests_t js_dests[]
Initial value:
= {
{"none", js_none},
{"movement", js_position},
{"aim", js_angles},
{"button", js_button},
{0, 0}
}
Definition: joystick.h:50
Definition: joystick.h:49
Definition: joystick.h:47
Definition: joystick.h:48
js_opts_t js_opts[]
Initial value:
= {
{"clear", js_clear},
{"amp", js_amp},
{"pre_amp", js_pre_amp},
{"deadzone", js_deadzone},
{"offset", js_offset},
{"type", js_type},
{"button", js_axis_button},
{0, 0}
}
Definition: joystick.h:54
Definition: joystick.h:60
Definition: joystick.h:57
Definition: joystick.h:59
Definition: joystick.h:55
Definition: joystick.h:56
Definition: joystick.h:58
js_axis_t js_position_names[]
Initial value:
= {
{"x", 0},
{"y", 1},
{"z", 2},
{0, 0}
}