an instance of a physical gamepad. More...
#include <gamepad.h>
Public Member Functions | |
virtual | ~Gamepad (void) throw () |
virtual Type * | getType (void) const =0 throw () |
what type of gamepad is this? This object (gamepad::Type) will tell you how many buttons, how many joysticks, etc. | |
virtual const char * | getId (void)=0 throw () |
get the ID (right now this is "source device:mapping" IDs) | |
virtual const char * | getSourceDeviceId (void)=0 throw () |
which source device is this? | |
virtual const char * | getMappingId (void)=0 throw () |
which mapping is this gamepad using? | |
virtual eDeviceState | getState (void)=0 throw () |
is the gamepad currently connected (sending events)? | |
virtual buttons_t | getButtons (void)=0 throw () |
if button with index X is pressed then bit X will be set | |
virtual eButton | getButton (IN int idx)=0 throw () |
retrieve the value of a particular button | |
virtual void | getJoystick (IN int idx, OUT joystick_t &joy)=0 throw () |
retrieve the value of a particular joystick | |
virtual void | getPot (IN int idx, OUT pot_value_t &pv)=0 throw () |
retrieve the value of a particular potentiometer | |
virtual eDpad | getDpad (IN int idx)=0 throw () |
retrieve the value of a particular dpad |
an instance of a physical gamepad.
Definition at line 53 of file lib/gamepad/gamepad.h.
gamepad::Gamepad::~Gamepad | ( | void | ) | throw () [virtual] |
Definition at line 39 of file manager.cpp.