Go to the source code of this file.
Functions | |
bool | joystick_init () |
init joystick More... | |
bool | joystick_detected () |
joystick detected More... | |
void | configure_joystick (bool on) |
configure joystick More... | |
void | configure_axis1 (int axis) |
configure joystick axis #1 More... | |
void | configure_inverted1 (bool invert=true) |
configure inverted joystick axis #1 More... | |
void | configure_axis2 (int axis) |
configure joystick axis #2 More... | |
void | configure_inverted2 (bool invert=true) |
configure inverted joystick axis #2 More... | |
void | configure_fire1 (int button) |
configure fire button #1 More... | |
void | configure_fire2 (int button) |
configure fire button #2 More... | |
bool | joystick_left () |
joystick moved left More... | |
bool | joystick_right () |
joystick moved right More... | |
bool | joystick_up () |
joystick moved up More... | |
bool | joystick_down () |
joystick moved down More... | |
bool | joystick_fire1 () |
joystick fire button 1 pressed More... | |
bool | joystick_fire2 () |
joystick fire button 2 pressed More... | |
void | joystick_state (int *dx, int *dy, int *buttons) |
void | joystick_exit () |
exit SDL More... | |
void configure_axis1 | ( | int | axis | ) |
configure joystick axis #1
void configure_axis2 | ( | int | axis | ) |
configure joystick axis #2
void configure_fire1 | ( | int | button | ) |
configure fire button #1
void configure_fire2 | ( | int | button | ) |
configure fire button #2
void configure_inverted1 | ( | bool | invert = true | ) |
configure inverted joystick axis #1
void configure_inverted2 | ( | bool | invert = true | ) |
configure inverted joystick axis #2
void configure_joystick | ( | bool | on | ) |
configure joystick
bool joystick_detected | ( | ) |
joystick detected
bool joystick_down | ( | ) |
joystick moved down
void joystick_exit | ( | ) |
exit SDL
bool joystick_fire1 | ( | ) |
joystick fire button 1 pressed
bool joystick_fire2 | ( | ) |
joystick fire button 2 pressed
bool joystick_init | ( | ) |
init joystick
bool joystick_left | ( | ) |
joystick moved left
bool joystick_right | ( | ) |
joystick moved right
void joystick_state | ( | int * | dx, |
int * | dy, | ||
int * | buttons | ||
) |
bool joystick_up | ( | ) |
joystick moved up