Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Classes | |
class | JoyStick |
Macros | |
#define | NUMJBUTTONS 32 |
#define | MAX_AXES 32 |
Typedefs | |
typedef void(* | JoyHandler )(KBSTATE, float x, float y, int mod) |
Enumerations | |
enum | { VS_HAT_CENTERED =0, VS_HAT_LEFT, VS_HAT_RIGHT, VS_HAT_DOWN, VS_HAT_UP, VS_HAT_RIGHTUP, VS_HAT_RIGHTDOWN, VS_HAT_LEFTUP, VS_HAT_LEFTDOWN } |
Functions | |
void | ProcessJoystick (int whichjoystick) |
void | InitJoystick () |
void | DeInitJoystick () |
void | BindJoyKey (int key, int joystick, KBHandler handler, const KBData &data) |
void | UnbindJoyKey (int joystick, int key) |
void | UnbindHatswitchKey (int hatswitch, int val_index) |
void | BindHatswitchKey (int hatswitch, int val_index, KBHandler handler, const KBData &data) |
void | BindDigitalHatswitchKey (int joystick, int hatswitch, int dir_index, KBHandler handler, const KBData &data) |
void | UnbindDigitalHatswitchKey (int joystick, int hatswitch, int dir_index) |
Variables | |
const int | MAX_JOYSTICKS = 16 |
const int | MOUSE_JOYSTICK = MAX_JOYSTICKS-1 |
const int | MAX_BUTTONS = 48 |
const int | MAX_DIGITAL_HATSWITCHES = 4 |
const int | MAX_DIGITAL_VALUES = 9 |
JoyStick * | joystick [MAX_JOYSTICKS] |
#define MAX_AXES 32 |
Definition at line 84 of file in_joystick.h.
Referenced by GameVegaConfig::GameVegaConfig(), JoyStick::GetJoyStick(), JoyStick::JoyStick(), and myGlutJoystickCallback().
#define NUMJBUTTONS 32 |
Definition at line 38 of file in_joystick.h.
Referenced by GenBindJoyKey(), GenUnbindJoyKey(), InitJoystick(), and ProcessJoystick().
Definition at line 106 of file in_joystick.h.
anonymous enum |
Enumerator | |
---|---|
VS_HAT_CENTERED | |
VS_HAT_LEFT | |
VS_HAT_RIGHT | |
VS_HAT_DOWN | |
VS_HAT_UP | |
VS_HAT_RIGHTUP | |
VS_HAT_RIGHTDOWN | |
VS_HAT_LEFTUP | |
VS_HAT_LEFTDOWN |
Definition at line 54 of file in_joystick.h.
void BindDigitalHatswitchKey | ( | int | joystick, |
int | hatswitch, | ||
int | dir_index, | ||
KBHandler | handler, | ||
const KBData & | data | ||
) |
Definition at line 82 of file in_sdl.cpp.
References DIGHATSWITCH, GenBindJoyKey(), and MAX_DIGITAL_VALUES.
Definition at line 72 of file in_sdl.cpp.
References GenBindJoyKey(), and HATSWITCH.
Definition at line 62 of file in_sdl.cpp.
References GenBindJoyKey(), and JOYSTICK_SWITCH.
void DeInitJoystick | ( | ) |
Definition at line 172 of file in_joystick.cpp.
References i, and MAX_JOYSTICKS.
Referenced by DeInitInput().
void InitJoystick | ( | ) |
Definition at line 129 of file in_joystick.cpp.
References vs_options::force_use_of_joystick, h, i, j, JoystickPollingRate(), MAX_DIGITAL_HATSWITCHES, MAX_DIGITAL_VALUES, MAX_HATSWITCHES, MAX_JOYSTICKS, MAX_VALUES, myGlutJoystickCallback(), num_joysticks, NUMJBUTTONS, UnbindDigitalHatswitchKey(), UnbindHatswitchKey(), UnbindJoyKey(), and v.
Referenced by InitInput().
void ProcessJoystick | ( | int | whichjoystick) |
Definition at line 87 of file in_sdl.cpp.
References JSHandlerCall::data, DIGHATSWITCH, JoyStick::digital_hat, DOWN, JSHandlerCall::function, JoyStick::GetJoyStick(), h, HATSWITCH, VegaConfig::hatswitch, VegaConfig::hatswitch_axis, VegaConfig::hatswitch_joystick, VegaConfig::hatswitch_margin, i, j, JoyStick::joy_axis, joystick, JOYSTICK_SWITCH, MAX_DIGITAL_VALUES, MAX_HATSWITCHES, MAX_JOYSTICKS, MAX_VALUES, JoyStick::nr_of_hats, NUMJBUTTONS, PRESS, RELEASE, UP, v, vs_config, VS_HAT_CENTERED, VS_HAT_DOWN, VS_HAT_LEFT, VS_HAT_LEFTDOWN, VS_HAT_LEFTUP, VS_HAT_RIGHT, VS_HAT_RIGHTDOWN, VS_HAT_RIGHTUP, VS_HAT_UP, x, y, and z.
Referenced by ProcessInput().
Definition at line 77 of file in_sdl.cpp.
References DIGHATSWITCH, GenUnbindJoyKey(), and MAX_DIGITAL_VALUES.
Referenced by InitJoystick().
Definition at line 67 of file in_sdl.cpp.
References GenUnbindJoyKey(), and HATSWITCH.
Referenced by InitJoystick().
Definition at line 57 of file in_sdl.cpp.
References GenUnbindJoyKey(), and JOYSTICK_SWITCH.
Referenced by InitJoystick().
JoyStick* joystick[MAX_JOYSTICKS] |
Definition at line 105 of file in_joystick.h.
Referenced by DealWithWarp(), FlyByJoystick::Execute(), FlyByJoystick::FlyByJoystick(), GenBindJoyKey(), GenUnbindJoyKey(), ProcessInput(), and ProcessJoystick().
const int MAX_BUTTONS = 48 |
Definition at line 50 of file in_joystick.h.
const int MAX_DIGITAL_HATSWITCHES = 4 |
Definition at line 51 of file in_joystick.h.
Referenced by GenUnbindJoyKey(), and InitJoystick().
const int MAX_DIGITAL_VALUES = 9 |
Definition at line 52 of file in_joystick.h.
Referenced by BindDigitalHatswitchKey(), GenUnbindJoyKey(), InitJoystick(), ProcessJoystick(), and UnbindDigitalHatswitchKey().
const int MAX_JOYSTICKS = 16 |
Definition at line 48 of file in_joystick.h.
Referenced by DeInitJoystick(), FlyByJoystick::Execute(), FlyByJoystick::FlyByJoystick(), g(), GenBindJoyKey(), GenUnbindJoyKey(), InitJoystick(), ProcessInput(), and ProcessJoystick().
const int MOUSE_JOYSTICK = MAX_JOYSTICKS-1 |
Definition at line 49 of file in_joystick.h.
Referenced by DealWithWarp(), and JoyStick::JoyStick().