torque Torque Game Engine Documentation
TGE Version 1.5.2

JoystickInputDevice Class Reference

#include <x86UNIXInputManager.h>

Inheritance diagram for JoystickInputDevice:

Inheritance graph
[legend]

Public Member Functions

 JoystickInputDevice (U8 deviceID)
 ~JoystickInputDevice ()
bool activate ()
bool deactivate ()
bool isActive ()
U8 getDeviceType ()
U8 getDeviceID ()
const char * getName ()
const char * getJoystickAxesString ()
void loadJoystickInfo ()
void loadAxisInfo ()
JoystickAxisInfogetAxisInfo (int axisNum)
bool process ()
void reset ()

Private Attributes

bool mActive
U8 mDeviceID
SDL_Joystick * mStick
Vector< JoystickAxisInfomAxisList
Vector< bool > mButtonState
Vector< U8mHatState
S32 mNumAxes
S32 mNumButtons
S32 mNumHats
S32 mNumBalls

Constructor & Destructor Documentation

JoystickInputDevice::JoystickInputDevice ( U8  deviceID  ) 

JoystickInputDevice::~JoystickInputDevice (  ) 


Member Function Documentation

bool JoystickInputDevice::activate (  ) 

bool JoystickInputDevice::deactivate (  ) 

bool JoystickInputDevice::isActive (  )  [inline]

U8 JoystickInputDevice::getDeviceType (  )  [inline]

U8 JoystickInputDevice::getDeviceID (  )  [inline]

const char* JoystickInputDevice::getName (  ) 

const char* JoystickInputDevice::getJoystickAxesString (  ) 

void JoystickInputDevice::loadJoystickInfo (  ) 

void JoystickInputDevice::loadAxisInfo (  ) 

JoystickAxisInfo& JoystickInputDevice::getAxisInfo ( int  axisNum  )  [inline]

bool JoystickInputDevice::process (  )  [virtual]

Implements InputDevice.

void JoystickInputDevice::reset (  ) 


Field Documentation

SDL_Joystick* JoystickInputDevice::mStick [private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen