Public Member Functions | |
uJoystickInput () | |
~uJoystickInput () | |
Public Attributes | |
std::vector< uJoystick * > | joysticks |
Definition at line 621 of file uInput.cpp.
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 }
std::vector< uJoystick * > uJoystickInput::joysticks |