Enumerations | Functions
pad_linux.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  PAD_SDL_JS_HAT_UP = 1<<0, PAD_SDL_JS_HAT_RIGHT = 1<<1, PAD_SDL_JS_HAT_DOWN = 1<<2, PAD_SDL_JS_HAT_LEFT = 1<<3,
  PAD_SDL_JS_AXIS1_X = 0, PAD_SDL_JS_AXIS1_Y = 1, PAD_SDL_JS_AXIS2_X = 2, PAD_SDL_JS_AXIS2_Y = 3,
  PAD_SDL_JS_AXIS_MAX = 32767, PAD_SDL_JS_AXIS_MIN = -32767
}

Functions

int pad_sdl_js_axis (int n)
float pad_sdl_js_axisf (int n)
int pad_sdl_js_button (int n)
int pad_sdl_js_button_push (int n)
void pad_sdl_js_close ()
int pad_sdl_js_hat (int n)
int pad_sdl_js_hat_push (int n)
bool pad_sdl_js_isok ()
int pad_sdl_js_open (const char *device="/dev/input/js0")
void pad_sdl_js_setok (bool b)
void pad_sdl_js_update ()

Enumeration Type Documentation

anonymous enum
Enumerator:
PAD_SDL_JS_HAT_UP 
PAD_SDL_JS_HAT_RIGHT 
PAD_SDL_JS_HAT_DOWN 
PAD_SDL_JS_HAT_LEFT 
PAD_SDL_JS_AXIS1_X 
PAD_SDL_JS_AXIS1_Y 
PAD_SDL_JS_AXIS2_X 
PAD_SDL_JS_AXIS2_Y 
PAD_SDL_JS_AXIS_MAX 
PAD_SDL_JS_AXIS_MIN 

Definition at line 16 of file pad_linux.h.


Function Documentation

int pad_sdl_js_axis ( int  n)

Definition at line 121 of file pad_linux.cpp.

float pad_sdl_js_axisf ( int  n)

Definition at line 129 of file pad_linux.cpp.

int pad_sdl_js_button ( int  n)

Definition at line 141 of file pad_linux.cpp.

int pad_sdl_js_button_push ( int  n)

Definition at line 154 of file pad_linux.cpp.

void pad_sdl_js_close ( )

Definition at line 68 of file pad_linux.cpp.

int pad_sdl_js_hat ( int  n)

Definition at line 136 of file pad_linux.cpp.

int pad_sdl_js_hat_push ( int  n)

Definition at line 149 of file pad_linux.cpp.

bool pad_sdl_js_isok ( )

Definition at line 74 of file pad_linux.cpp.

int pad_sdl_js_open ( const char *  device = "/dev/input/js0")

Definition at line 40 of file pad_linux.cpp.

void pad_sdl_js_setok ( bool  b)

Definition at line 80 of file pad_linux.cpp.

Definition at line 84 of file pad_linux.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


RS003
Author(s):
autogenerated on Thu Jun 27 2013 14:58:49