vegastrike
0.5.1.r1
|
#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) |
#define MAXOR | ( | A, | |
B | |||
) | ( ( (A) < (B) ) ? (B) : (A) ) |
Definition at line 31 of file in_sdl.cpp.
enum JSSwitches |
Enumerator | |
---|---|
JOYSTICK_SWITCH | |
HATSWITCH | |
DIGHATSWITCH | |
NUMSWITCHES |
Definition at line 24 of file in_sdl.cpp.
void BindDigitalHatswitchKey | ( | int | joystick, |
int | key, | ||
int | dir, | ||
KBHandler | handler, | ||
const KBData & | data | ||
) |
Definition at line 82 of file in_sdl.cpp.
Definition at line 72 of file in_sdl.cpp.
Definition at line 62 of file in_sdl.cpp.
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.
JSHandlerCall JoystickBindings[NUMSWITCHES][MAXOR(MAX_HATSWITCHES, MAX_JOYSTICKS)][MAXOR(NUMJBUTTONS,MAXOR(MAX_VALUES,MAX_DIGITAL_HATSWITCHES *MAX_DIGITAL_VALUES))] |
Definition at line 35 of file in_sdl.cpp.
KBSTATE JoystickState[NUMSWITCHES][MAXOR(MAX_HATSWITCHES, MAX_JOYSTICKS)][MAXOR(MAX_VALUES,MAXOR(NUMJBUTTONS, MAX_DIGITAL_HATSWITCHES *MAX_DIGITAL_VALUES))] |
Definition at line 38 of file in_sdl.cpp.