#include <InputDevice.hpp>
List of all members.
Classes |
struct | ButtonState |
Public Member Functions |
const std::string & | getName () const |
void | setName (const std::string &newName) |
InputManager * | getInputManager () |
void | setInputManager (InputManager *man) |
| InputDevice () |
virtual | ~InputDevice () |
virtual std::string | getButtonName (unsigned int button) const =0 |
virtual int | getNumButtons () const =0 |
virtual std::string | getAxisName (unsigned int axis) const =0 |
virtual unsigned int | getNumAxes () const =0 |
virtual bool | isKeyboard () |
bool | fireButton (const InputDevicePtr &thisptr, unsigned int button, bool newState, Modifier mod=0) |
bool | fireAxis (const InputDevicePtr &thisptr, unsigned int axis, AxisValue newState) |
AxisValue | getAxis (unsigned int axis) const |
bool | getButton (unsigned int button, Modifier mod) const |
const Modifier * | getButton (unsigned int button) const |
Protected Types |
typedef
std::tr1::unordered_map
< unsigned int, ButtonState > | ButtonSet |
typedef std::vector< AxisValue > | AxisVector |
Protected Member Functions |
bool | changeButton (unsigned int button, bool newState, Modifier &mod) |
bool | changeAxis (unsigned int axis, AxisValue newValue) |
Protected Attributes |
std::string | mName |
InputManager * | mManager |
ButtonSet | buttonState |
AxisVector | axisState |
Member Typedef Documentation
Constructor & Destructor Documentation
Sirikata::Input::InputDevice::InputDevice |
( |
| ) |
[inline] |
virtual Sirikata::Input::InputDevice::~InputDevice |
( |
| ) |
[inline, virtual] |
Member Function Documentation
bool Sirikata::Input::InputDevice::changeAxis |
( |
unsigned int |
axis, |
|
|
AxisValue |
newValue |
|
) |
| [protected] |
bool Sirikata::Input::InputDevice::changeButton |
( |
unsigned int |
button, |
|
|
bool |
newState, |
|
|
Modifier & |
mod |
|
) |
| [protected] |
bool Sirikata::Input::InputDevice::fireAxis |
( |
const InputDevicePtr & |
thisptr, |
|
|
unsigned int |
axis, |
|
|
AxisValue |
newState |
|
) |
| |
bool Sirikata::Input::InputDevice::fireButton |
( |
const InputDevicePtr & |
thisptr, |
|
|
unsigned int |
button, |
|
|
bool |
newState, |
|
|
Modifier |
mod = 0 |
|
) |
| |
AxisValue Sirikata::Input::InputDevice::getAxis |
( |
unsigned int |
axis | ) |
const [inline] |
virtual std::string Sirikata::Input::InputDevice::getAxisName |
( |
unsigned int |
axis | ) |
const [pure virtual] |
const Modifier* Sirikata::Input::InputDevice::getButton |
( |
unsigned int |
button | ) |
const [inline] |
bool Sirikata::Input::InputDevice::getButton |
( |
unsigned int |
button, |
|
|
Modifier |
mod |
|
) |
| const [inline] |
virtual std::string Sirikata::Input::InputDevice::getButtonName |
( |
unsigned int |
button | ) |
const [pure virtual] |
InputManager* Sirikata::Input::InputDevice::getInputManager |
( |
| ) |
[inline] |
const std::string& Sirikata::Input::InputDevice::getName |
( |
| ) |
const [inline] |
virtual unsigned int Sirikata::Input::InputDevice::getNumAxes |
( |
| ) |
const [pure virtual] |
virtual int Sirikata::Input::InputDevice::getNumButtons |
( |
| ) |
const [pure virtual] |
virtual bool Sirikata::Input::InputDevice::isKeyboard |
( |
| ) |
[inline, virtual] |
void Sirikata::Input::InputDevice::setInputManager |
( |
InputManager * |
man | ) |
[inline] |
void Sirikata::Input::InputDevice::setName |
( |
const std::string & |
newName | ) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following files: