Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
A common base class for joystick device. More...
#include <Joystick.h>
Public Member Functions | |
void | addJoystickEventReceiver (input::JoystickEventReceiver *newEventReceiver) |
s16 | getNumAxes () |
Returns the number of axes. | |
s16 | getNumButtons () |
Returns the number of buttons. | |
s16 | getNumPOVs () |
Returns the number of povs. | |
Joystick () | |
Constructor. | |
void | removeJoystickEventReceiver (input::JoystickEventReceiver *oldEventReceiver) |
virtual | ~Joystick () |
Destructor. | |
Protected Member Functions | |
void | initProperties () |
Protected Attributes | |
JoystickEvent * | mEvent |
std::list < input::JoystickEventReceiver * > | mJoystickEventReceivers |
s16 | mNumAxes |
s16 | mNumButtons |
s16 | mNumPOVs |
A common base class for joystick device.
input::Joystick::Joystick | ( | ) |
Constructor.
References initProperties(), input::IT_JOYSTICK, and input::InputDevice::mInputType.
input::Joystick::~Joystick | ( | ) | [virtual] |
Destructor.
References mEvent.
void input::Joystick::addJoystickEventReceiver | ( | input::JoystickEventReceiver * | newEventReceiver | ) |
References mJoystickEventReceivers.
s16 input::Joystick::getNumButtons | ( | ) |
Returns the number of buttons.
References mNumButtons.
void input::Joystick::initProperties | ( | ) | [protected] |
Reimplemented from input::InputDevice.
References mEvent, mNumAxes, mNumButtons, and mNumPOVs.
Referenced by Joystick().
void input::Joystick::removeJoystickEventReceiver | ( | input::JoystickEventReceiver * | oldEventReceiver | ) |
References mJoystickEventReceivers.
JoystickEvent* input::Joystick::mEvent [protected] |
Referenced by initProperties(), and ~Joystick().
std::list<input::JoystickEventReceiver*> input::Joystick::mJoystickEventReceivers [protected] |
Referenced by addJoystickEventReceiver(), and removeJoystickEventReceiver().
s16 input::Joystick::mNumAxes [protected] |
Referenced by getNumAxes(), and initProperties().
s16 input::Joystick::mNumButtons [protected] |
Referenced by getNumButtons(), and initProperties().
s16 input::Joystick::mNumPOVs [protected] |
Referenced by getNumPOVs(), and initProperties().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|