torcs - 1.2.2

jsJoystick Class Reference

#include <js.h>

Collaboration diagram for jsJoystick:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 jsJoystick (int ident=0)
 ~jsJoystick ()
const char * getName () const
int getNumAxes () const
int notWorking () const
void setError ()
float getDeadBand (int axis) const
void setDeadBand (int axis, float db)
float getSaturation (int axis) const
void setSaturation (int axis, float st)
void setMinRange (float *axes)
void setMaxRange (float *axes)
void setCenter (float *axes)
void getMinRange (float *axes) const
void getMaxRange (float *axes) const
void getCenter (float *axes) const
void read (int *buttons, float *axes)
void rawRead (int *buttons, float *axes)

Private Member Functions

void open ()
void close ()
float fudge_axis (float value, int axis) const

Private Attributes

char name [NAME_LENGTH]
JS_DATA_TYPE js
char fname [128]
char alt_fname [128]
int fd
int error
int num_axes
int num_buttons
float dead_band [_JS_MAX_AXES]
float saturate [_JS_MAX_AXES]
float center [_JS_MAX_AXES]
float max [_JS_MAX_AXES]
float min [_JS_MAX_AXES]

Constructor & Destructor Documentation

jsJoystick::jsJoystick int  ident = 0  )  [inline]
 

Here is the call graph for this function:

jsJoystick::~jsJoystick  )  [inline]
 

Here is the call graph for this function:


Member Function Documentation

void jsJoystick::close  )  [inline, private]
 

float jsJoystick::fudge_axis float  value,
int  axis
const [inline, private]
 

void jsJoystick::getCenter float *  axes  )  const [inline]
 

float jsJoystick::getDeadBand int  axis  )  const [inline]
 

void jsJoystick::getMaxRange float *  axes  )  const [inline]
 

void jsJoystick::getMinRange float *  axes  )  const [inline]
 

const char* jsJoystick::getName  )  const [inline]
 

int jsJoystick::getNumAxes  )  const [inline]
 

float jsJoystick::getSaturation int  axis  )  const [inline]
 

int jsJoystick::notWorking  )  const [inline]
 

void jsJoystick::open  )  [inline, private]
 

Here is the call graph for this function:

void jsJoystick::rawRead int *  buttons,
float *  axes
[inline]
 

Here is the call graph for this function:

void jsJoystick::read int *  buttons,
float *  axes
[inline]
 

Here is the call graph for this function:

void jsJoystick::setCenter float *  axes  )  [inline]
 

void jsJoystick::setDeadBand int  axis,
float  db
[inline]
 

void jsJoystick::setError  )  [inline]
 

void jsJoystick::setMaxRange float *  axes  )  [inline]
 

void jsJoystick::setMinRange float *  axes  )  [inline]
 

void jsJoystick::setSaturation int  axis,
float  st
[inline]
 


Member Data Documentation

char jsJoystick::alt_fname[ 128 ] [private]
 

float jsJoystick::center[ _JS_MAX_AXES ] [private]
 

float jsJoystick::dead_band[ _JS_MAX_AXES ] [private]
 

int jsJoystick::error [private]
 

int jsJoystick::fd [private]
 

char jsJoystick::fname[ 128 ] [private]
 

JS_DATA_TYPE jsJoystick::js [private]
 

float jsJoystick::max[ _JS_MAX_AXES ] [private]
 

float jsJoystick::min[ _JS_MAX_AXES ] [private]
 

char jsJoystick::name[ NAME_LENGTH ] [private]
 

int jsJoystick::num_axes [private]
 

int jsJoystick::num_buttons [private]
 

float jsJoystick::saturate[ _JS_MAX_AXES ] [private]
 


The documentation for this class was generated from the following file:
Generated at Thu Feb 26 21:54:08 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.