ASCII-GFX  2.0
Macros | Functions
joystick.cpp File Reference
#include "joystick.h"

Macros

#define JOYSTICK_AXIS1   0
 
#define JOYSTICK_AXIS2   1
 
#define JOYSTICK_FIRE1   3
 
#define JOYSTICK_FIRE2   4
 

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)
 configure inverted joystick axis #1 More...
 
void configure_axis2 (int axis)
 configure joystick axis #2 More...
 
void configure_inverted2 (bool invert)
 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...
 

Macro Definition Documentation

◆ JOYSTICK_AXIS1

#define JOYSTICK_AXIS1   0

◆ JOYSTICK_AXIS2

#define JOYSTICK_AXIS2   1

◆ JOYSTICK_FIRE1

#define JOYSTICK_FIRE1   3

◆ JOYSTICK_FIRE2

#define JOYSTICK_FIRE2   4

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)

configure inverted joystick axis #1

◆ configure_inverted2()

void configure_inverted2 ( bool  invert)

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