vegastrike  0.5.1.r1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
in_sdl.cpp File Reference
#include "in_joystick.h"
#include "vs_globals.h"
#include "config_xml.h"
#include "in_kb_data.h"
#include <assert.h>

Go to the source code of this file.

Classes

struct  JSHandlerCall
 

Macros

#define MAXOR(A, B)   ( ( (A) < (B) ) ? (B) : (A) )
 

Enumerations

enum  JSSwitches { JOYSTICK_SWITCH, HATSWITCH, DIGHATSWITCH, NUMSWITCHES }
 

Functions

void DefaultJoyHandler (const KBData &, KBSTATE newState)
 needed for assert() calls. More...
 
void UnbindJoyKey (int joystick, int key)
 
void BindJoyKey (int joystick, int key, KBHandler handler, const KBData &data)
 
void UnbindHatswitchKey (int joystick, int key)
 
void BindHatswitchKey (int joystick, int key, KBHandler handler, const KBData &data)
 
void UnbindDigitalHatswitchKey (int joystick, int key, int dir)
 
void BindDigitalHatswitchKey (int joystick, int key, int dir, KBHandler handler, const KBData &data)
 
void ProcessJoystick (int whichplayer)
 

Variables

JSHandlerCall JoystickBindings [NUMSWITCHES][MAXOR(MAX_HATSWITCHES, MAX_JOYSTICKS)][MAXOR(NUMJBUTTONS, MAXOR(MAX_VALUES, MAX_DIGITAL_HATSWITCHES *MAX_DIGITAL_VALUES))]
 
KBSTATE JoystickState [NUMSWITCHES][MAXOR(MAX_HATSWITCHES, MAX_JOYSTICKS)][MAXOR(MAX_VALUES, MAXOR(NUMJBUTTONS, MAX_DIGITAL_HATSWITCHES *MAX_DIGITAL_VALUES))]
 

Macro Definition Documentation

#define MAXOR (   A,
 
)    ( ( (A) < (B) ) ? (B) : (A) )

Definition at line 31 of file in_sdl.cpp.

Enumeration Type Documentation

enum JSSwitches
Enumerator
JOYSTICK_SWITCH 
HATSWITCH 
DIGHATSWITCH 
NUMSWITCHES 

Definition at line 24 of file in_sdl.cpp.

Function Documentation

void BindDigitalHatswitchKey ( int  joystick,
int  key,
int  dir,
KBHandler  handler,
const KBData data 
)

Definition at line 82 of file in_sdl.cpp.

void BindHatswitchKey ( int  joystick,
int  key,
KBHandler  handler,
const KBData data 
)

Definition at line 72 of file in_sdl.cpp.

void BindJoyKey ( int  joystick,
int  key,
KBHandler  handler,
const KBData data 
)

Definition at line 62 of file in_sdl.cpp.

void DefaultJoyHandler ( const KBData ,
KBSTATE  newState 
)

needed for assert() calls.

Definition at line 6 of file in_sdl.cpp.

void ProcessJoystick ( int  whichplayer)

Definition at line 87 of file in_sdl.cpp.

void UnbindDigitalHatswitchKey ( int  joystick,
int  key,
int  dir 
)

Definition at line 77 of file in_sdl.cpp.

void UnbindHatswitchKey ( int  joystick,
int  key 
)

Definition at line 67 of file in_sdl.cpp.

void UnbindJoyKey ( int  joystick,
int  key 
)

Definition at line 57 of file in_sdl.cpp.

Variable Documentation