UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_joystick.cpp File Reference
#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"
Include dependency graph for cl_joystick.cpp:

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 = nullptr
static cvar_tin_joystick
static cvar_tin_joystickNo
static cvar_tin_joystickThreshold
static cvar_tin_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]

Function Documentation

◆ IN_JoystickInitMenu()

void IN_JoystickInitMenu ( void )

Adds joysticks to the options menu.

Definition at line 270 of file cl_joystick.cpp.

References _, i, OPTION_JOYSTICKS, UI_AddOption(), UI_RegisterOption(), and va().

Referenced by CLMN_Init().

◆ IN_JoystickMove()

◆ IN_StartupJoystick()

void IN_StartupJoystick ( void )

Variable Documentation

◆ buttons

bool buttons[16]

Definition at line 40 of file cl_joystick.cpp.

Referenced by Com_BreakIntoDebugger().

◆ hat_keys

const int hat_keys[16]
static
Initial value:
= {
}
@ K_JOY19
Definition cl_keys.h:119
@ K_JOY22
Definition cl_keys.h:122
@ K_JOY21
Definition cl_keys.h:121
@ K_JOY32
Definition cl_keys.h:132
@ K_JOY25
Definition cl_keys.h:125
@ K_JOY17
Definition cl_keys.h:117
@ K_JOY23
Definition cl_keys.h:123
@ K_JOY30
Definition cl_keys.h:130
@ K_JOY18
Definition cl_keys.h:118
@ K_JOY31
Definition cl_keys.h:131
@ K_JOY29
Definition cl_keys.h:129
@ K_JOY28
Definition cl_keys.h:128
@ K_JOY26
Definition cl_keys.h:126
@ K_JOY27
Definition cl_keys.h:127
@ K_JOY20
Definition cl_keys.h:120
@ K_JOY24
Definition cl_keys.h:124

Definition at line 60 of file cl_joystick.cpp.

Referenced by IN_JoystickMove().

◆ in_joystick

cvar_t* in_joystick
static

Definition at line 34 of file cl_joystick.cpp.

Referenced by IN_JoystickMove(), and IN_StartupJoystick().

◆ in_joystickNo

cvar_t* in_joystickNo
static

Definition at line 35 of file cl_joystick.cpp.

Referenced by IN_JoystickMove(), and IN_StartupJoystick().

◆ in_joystickSpeed

cvar_t* in_joystickSpeed
static

Definition at line 37 of file cl_joystick.cpp.

Referenced by IN_JoystickMove(), and IN_StartupJoystick().

◆ in_joystickThreshold

cvar_t* in_joystickThreshold
static

Definition at line 36 of file cl_joystick.cpp.

Referenced by IN_JoystickMove(), and IN_StartupJoystick().

◆ joy_keys

const int joy_keys[16]
static
Initial value:

Definition at line 46 of file cl_joystick.cpp.

Referenced by IN_JoystickMove().

◆ oldaxes

unsigned int oldaxes

Definition at line 41 of file cl_joystick.cpp.

◆ oldhats

unsigned int oldhats

Definition at line 42 of file cl_joystick.cpp.

◆ stick

SDL_Joystick* stick = nullptr
static

Definition at line 33 of file cl_joystick.cpp.

Referenced by IN_JoystickMove(), and IN_StartupJoystick().

◆ [struct]

struct { ... } stick_state