|
UFO: Alien Invasion
|
#include "cl_joystick.h"#include "../client.h"#include "cl_input.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. More... | |
| void | IN_StartupJoystick (void) |
| Init available joysticks. More... | |
Variables | |
| static SDL_Joystick * | stick = nullptr |
| static cvar_t * | in_joystick |
| static cvar_t * | in_joystickNo |
| static cvar_t * | in_joystickThreshold |
| static cvar_t * | in_joystickSpeed |
| struct { | |
| bool buttons [16] | |
| unsigned int oldaxes | |
| unsigned int oldhats | |
| } | stick_state |
| static const int | joy_keys [16] |
| static const int | hat_keys [16] |
Adds joysticks to the options menu.
Definition at line 274 of file cl_joystick.cpp.
References _, i, OPTION_JOYSTICKS, UI_AddOption(), UI_RegisterOption(), and va().
Referenced by CLMN_Init().
Definition at line 75 of file cl_joystick.cpp.
References viddef_t::context, f, hat_keys, viddefContext_t::height, i, IN_EventEnqueue(), in_joystick, in_joystickNo, in_joystickSpeed, in_joystickThreshold, IN_StartupJoystick(), cvar_t::integer, joy_keys, K_JOY1, lengthof, cvar_t::modified, mousePosX, mousePosY, OBJZERO, viddef_t::rx, viddef_t::ry, stick, stick_state, cvar_t::value, viddef, and viddefContext_t::width.
Referenced by IN_Frame().
Init available joysticks.
Definition at line 291 of file cl_joystick.cpp.
References Com_DPrintf(), Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), Cvar_Set(), DEBUG_CLIENT, i, in_joystick, in_joystickNo, in_joystickSpeed, in_joystickThreshold, cvar_t::integer, cvar_t::modified, OBJZERO, stick, and stick_state.
Referenced by IN_Init(), and IN_JoystickMove().
| bool buttons[16] |
Definition at line 44 of file cl_joystick.cpp.
Referenced by Com_BreakIntoDebugger().
|
static |
|
static |
Definition at line 34 of file cl_joystick.cpp.
Referenced by IN_JoystickMove(), and IN_StartupJoystick().
|
static |
Definition at line 35 of file cl_joystick.cpp.
Referenced by IN_JoystickMove(), and IN_StartupJoystick().
|
static |
Definition at line 37 of file cl_joystick.cpp.
Referenced by IN_JoystickMove(), and IN_StartupJoystick().
|
static |
Definition at line 36 of file cl_joystick.cpp.
Referenced by IN_JoystickMove(), and IN_StartupJoystick().
|
static |
| unsigned int oldaxes |
Definition at line 45 of file cl_joystick.cpp.
| unsigned int oldhats |
Definition at line 46 of file cl_joystick.cpp.
|
static |
Definition at line 33 of file cl_joystick.cpp.
Referenced by IN_JoystickMove(), and IN_StartupJoystick().
| struct { ... } stick_state |
Referenced by IN_JoystickMove(), and IN_StartupJoystick().