#include "../client.h"
#include "cl_input.h"
#include "cl_joystick.h"
#include "../ui/ui_main.h"
#include "../ui/ui_nodes.h"
#include "../ui/node/ui_node_abstractoption.h"
Go to the source code of this file.
Functions | |
void | IN_JoystickMove (void) |
void | IN_JoystickInitMenu (void) |
Adds joysticks to the options menu. | |
void | IN_StartupJoystick (void) |
Init available joysticks. | |
Variables | |
static SDL_Joystick * | stick = NULL |
static cvar_t * | in_joystick |
static cvar_t * | in_joystickNo |
static cvar_t * | in_joystickThreshold |
static cvar_t * | in_joystickSpeed |
struct { | |
qboolean buttons [16] | |
unsigned int oldaxes | |
unsigned int oldhats | |
} | stick_state |
static const int | joy_keys [16] |
static const int | hat_keys [16] |
Definition in file cl_joystick.c.
void IN_JoystickInitMenu | ( | void | ) |
Adds joysticks to the options menu.
Definition at line 272 of file cl_joystick.c.
References _, i, OPTION_JOYSTICKS, UI_AddOption(), UI_RegisterOption(), and va().
Referenced by CL_InitAfter().
void IN_JoystickMove | ( | void | ) |
Definition at line 71 of file cl_joystick.c.
References f, hat_keys, viddef_t::height, i, IN_EventEnqueue(), IN_StartupJoystick(), cvar_s::integer, joy_keys, K_JOY1, lengthof, cvar_s::modified, mousePosX, mousePosY, qfalse, qtrue, viddef_t::rx, viddef_t::ry, stick, stick_state, cvar_s::value, viddef, and viddef_t::width.
Referenced by IN_Frame().
void IN_StartupJoystick | ( | void | ) |
Init available joysticks.
Definition at line 290 of file cl_joystick.c.
References Com_DPrintf(), Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), Cvar_Set(), DEBUG_CLIENT, i, cvar_s::integer, cvar_s::modified, qfalse, stick, and stick_state.
Referenced by IN_Init(), and IN_JoystickMove().
Definition at line 40 of file cl_joystick.c.
const int hat_keys[16] [static] |
cvar_t* in_joystick [static] |
Definition at line 34 of file cl_joystick.c.
cvar_t* in_joystickNo [static] |
Definition at line 35 of file cl_joystick.c.
cvar_t* in_joystickSpeed [static] |
Definition at line 37 of file cl_joystick.c.
cvar_t* in_joystickThreshold [static] |
Definition at line 36 of file cl_joystick.c.
const int joy_keys[16] [static] |
{ K_LEFTARROW, K_RIGHTARROW, K_UPARROW, K_DOWNARROW, K_JOY16, K_JOY17, K_JOY18, K_JOY19, K_JOY20, K_JOY21, K_JOY22, K_JOY23, K_JOY24, K_JOY25, K_JOY26, K_JOY27 }
Definition at line 46 of file cl_joystick.c.
Referenced by IN_JoystickMove().
unsigned int oldaxes |
Definition at line 41 of file cl_joystick.c.
unsigned int oldhats |
Definition at line 42 of file cl_joystick.c.
SDL_Joystick* stick = NULL [static] |
Definition at line 33 of file cl_joystick.c.
Referenced by IN_JoystickMove(), and IN_StartupJoystick().
struct { ... } stick_state [static] |
Referenced by IN_JoystickMove(), and IN_StartupJoystick().