uJoystickInput Class Reference

List of all members.

Public Member Functions

 uJoystickInput ()
 ~uJoystickInput ()

Public Attributes

std::vector< uJoystick * > joysticks


Detailed Description

Definition at line 621 of file uInput.cpp.


Constructor & Destructor Documentation

uJoystickInput::uJoystickInput (  )  [inline]

Definition at line 624 of file uInput.cpp.

00624       :
00625     uJoystickInput()
00626     {
00627         // create joysticks
00628         int numJoysticks = SDL_NumJoysticks();
00629         for ( int i = 0; i < numJoysticks; ++i )
00630         {
00631             joysticks.push_back( new uJoystick( i ) );
00632         }
    }

uJoystickInput::~uJoystickInput (  )  [inline]

Definition at line 634 of file uInput.cpp.

00636     {
00637         // delete joysticks
00638         for ( std::vector< uJoystick * >::iterator iter = joysticks.begin(); iter != joysticks.end(); ++iter )
00639         {
00640             delete(*iter);
00641             *iter = 0;
00642         }


Member Data Documentation

std::vector< uJoystick * > uJoystickInput::joysticks

Definition at line 645 of file uInput.cpp.

Referenced by su_GetJoystick().


The documentation for this class was generated from the following file:
Generated on Sun Mar 16 00:00:25 2008 for Armagetron Advanced by  doxygen 1.5.4