Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <in_joystick.h>
Public Member Functions | |
JoyStick (int) | |
void | GetJoyStick (float &x, float &y, float &z, int &buttons) |
bool | isAvailable (void) |
bool | is_around (float axe, float hswitch) |
int | NumButtons () |
JoyStick () | |
Public Attributes | |
void * | otherdata |
int | nr_of_axes |
int | nr_of_buttons |
int | nr_of_hats |
int | hat_margin |
size_t | player |
bool | axis_inverse [MAX_AXES] |
int | axis_axis [MAX_AXES] |
float | joy_axis [MAX_AXES] |
unsigned char | digital_hat [MAX_DIGITAL_HATSWITCHES] |
bool | debug_digital_hatswitch |
int | joy_buttons |
bool | joy_available |
float | joy_xmin |
float | joy_xmax |
float | joy_ymin |
float | joy_ymax |
float | joy_zmin |
float | joy_zmax |
float | joy_x |
float | joy_y |
float | joy_z |
float | deadzone |
Definition at line 62 of file in_joystick.h.
JoyStick::JoyStick | ( | int | which) |
Definition at line 177 of file in_joystick.cpp.
References axis_axis, axis_inverse, vs_options::deadband, deadzone, vs_options::debug_digital_hatswitch, debug_digital_hatswitch, j, joy_available, joy_axis, joy_buttons, joy_x, joy_y, joy_z, MAX_AXES, vs_options::mouse_deadband, MOUSE_JOYSTICK, nr_of_axes, nr_of_buttons, nr_of_hats, num_joysticks, and player.
JoyStick::JoyStick | ( | ) |
Definition at line 116 of file in_joystick.cpp.
References axis_axis, axis_inverse, j, joy_axis, joy_buttons, and MAX_AXES.
Definition at line 329 of file in_joystick.cpp.
References a, digital_hat, h, joy_available, joy_axis, joy_buttons, JoystickPollingRate(), MAX_AXES, modifyDeadZone(), modifyExponent(), nr_of_buttons, and nr_of_hats.
Referenced by ProcessJoystick().
bool JoyStick::isAvailable | ( | void | ) |
Definition at line 242 of file in_joystick.cpp.
References joy_available.
int JoyStick::NumButtons | ( | ) |
Definition at line 374 of file in_joystick.cpp.
References nr_of_buttons.
Definition at line 86 of file in_joystick.h.
Referenced by FlyByJoystick::Execute(), and JoyStick().
Definition at line 85 of file in_joystick.h.
Referenced by FlyByJoystick::Execute(), and JoyStick().
float JoyStick::deadzone |
Definition at line 101 of file in_joystick.h.
Referenced by JoyStick(), and modifyDeadZone().
bool JoyStick::debug_digital_hatswitch |
Definition at line 95 of file in_joystick.h.
Referenced by JoyStick().
unsigned char JoyStick::digital_hat[MAX_DIGITAL_HATSWITCHES] |
Definition at line 92 of file in_joystick.h.
Referenced by GetJoyStick(), and ProcessJoystick().
int JoyStick::hat_margin |
Definition at line 82 of file in_joystick.h.
bool JoyStick::joy_available |
Definition at line 98 of file in_joystick.h.
Referenced by GetJoyStick(), isAvailable(), and JoyStick().
Definition at line 87 of file in_joystick.h.
Referenced by FlyByJoystick::Execute(), GetJoyStick(), JoyStick(), modifyDeadZone(), modifyExponent(), myGlutJoystickCallback(), and ProcessJoystick().
int JoyStick::joy_buttons |
Definition at line 97 of file in_joystick.h.
Referenced by GetJoyStick(), JoyStick(), and myGlutJoystickCallback().
float JoyStick::joy_x |
Definition at line 100 of file in_joystick.h.
Referenced by JoyStick().
float JoyStick::joy_xmax |
Definition at line 99 of file in_joystick.h.
float JoyStick::joy_xmin |
Definition at line 99 of file in_joystick.h.
float JoyStick::joy_y |
Definition at line 100 of file in_joystick.h.
Referenced by JoyStick().
float JoyStick::joy_ymax |
Definition at line 99 of file in_joystick.h.
float JoyStick::joy_ymin |
Definition at line 99 of file in_joystick.h.
float JoyStick::joy_z |
Definition at line 100 of file in_joystick.h.
Referenced by JoyStick().
float JoyStick::joy_zmax |
Definition at line 99 of file in_joystick.h.
float JoyStick::joy_zmin |
Definition at line 99 of file in_joystick.h.
int JoyStick::nr_of_axes |
Definition at line 81 of file in_joystick.h.
Referenced by JoyStick(), modifyDeadZone(), and modifyExponent().
int JoyStick::nr_of_buttons |
Definition at line 81 of file in_joystick.h.
Referenced by GetJoyStick(), JoyStick(), and NumButtons().
int JoyStick::nr_of_hats |
Definition at line 81 of file in_joystick.h.
Referenced by GetJoyStick(), JoyStick(), and ProcessJoystick().
void* JoyStick::otherdata |
Definition at line 79 of file in_joystick.h.
size_t JoyStick::player |
Definition at line 83 of file in_joystick.h.
Referenced by JoyStick().