ASCII-GFX  2.0
All Classes Files Functions Variables Macros Pages
Functions
joystick.h File Reference
This graph shows which files directly or indirectly include this file:

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...
 

Function Documentation

◆ configure_axis1()

void configure_axis1 ( int  axis)

configure joystick axis #1

◆ configure_axis2()

void configure_axis2 ( int  axis)

configure joystick axis #2

◆ configure_fire1()

void configure_fire1 ( int  button)

configure fire button #1

◆ configure_fire2()

void configure_fire2 ( int  button)

configure fire button #2

◆ configure_inverted1()

void configure_inverted1 ( bool  invert = true)

configure inverted joystick axis #1

◆ configure_inverted2()

void configure_inverted2 ( bool  invert = true)

configure inverted joystick axis #2

◆ configure_joystick()

void configure_joystick ( bool  on)

configure joystick

◆ joystick_detected()

bool joystick_detected ( )

joystick detected

◆ joystick_down()

bool joystick_down ( )

joystick moved down

◆ joystick_exit()

void joystick_exit ( )

exit SDL

◆ joystick_fire1()

bool joystick_fire1 ( )

joystick fire button 1 pressed

◆ joystick_fire2()

bool joystick_fire2 ( )

joystick fire button 2 pressed

◆ joystick_init()

bool joystick_init ( )

init joystick

◆ joystick_left()

bool joystick_left ( )

joystick moved left

◆ joystick_right()

bool joystick_right ( )

joystick moved right

◆ joystick_state()

void joystick_state ( int *  dx,
int *  dy,
int *  buttons 
)

◆ joystick_up()

bool joystick_up ( )

joystick moved up