Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
A common base class for input devices. More...
#include <InputDevice.h>
Public Member Functions | |
bool | getBuffered () |
Get buffered mode - true is buffered, false otherwise. | |
InputType | getInputType () |
Get the type of device. | |
const std::string & | getVendor () const |
Get the device vendor. | |
InputDevice () | |
Constructor. | |
void | setBuffered (bool buffered) |
Sets buffered mode. | |
virtual | ~InputDevice () |
Destructor. | |
Protected Member Functions | |
void | initProperties () |
virtual void | updateImpl (f32 elapsedTime) |
Protected Attributes | |
bool | mBuffered |
InputType | mInputType |
std::string | mVendor |
Static Protected Attributes | |
static u32 | msNextGeneratedInputDeviceIndex = 0 |
Incremented count for next index. |
A common base class for input devices.
input::InputDevice::InputDevice | ( | ) |
Constructor.
References initProperties(), input::IT_UNKNOWN, mInputType, engine::Object::mObjectType, and engine::OT_INPUTDEVICE.
input::InputDevice::~InputDevice | ( | ) | [virtual] |
Destructor.
bool input::InputDevice::getBuffered | ( | ) |
Get buffered mode - true is buffered, false otherwise.
References mBuffered.
InputType input::InputDevice::getInputType | ( | ) |
Get the type of device.
References mInputType.
const std::string & input::InputDevice::getVendor | ( | ) | const |
Get the device vendor.
References mVendor.
void input::InputDevice::initProperties | ( | ) | [protected] |
Reimplemented in input::Joystick, input::Keyboard, and input::Mouse.
References mBuffered, mVendor, and core::STRING_BLANK.
Referenced by InputDevice().
void input::InputDevice::setBuffered | ( | bool | buffered | ) |
Sets buffered mode.
References mBuffered.
void input::InputDevice::updateImpl | ( | f32 | elapsedTime | ) | [protected, virtual] |
Reimplemented from engine::Object.
bool input::InputDevice::mBuffered [protected] |
Referenced by getBuffered(), initProperties(), and setBuffered().
InputType input::InputDevice::mInputType [protected] |
Referenced by getInputType(), InputDevice(), input::Joystick::Joystick(), input::Keyboard::Keyboard(), and input::Mouse::Mouse().
u32 input::InputDevice::msNextGeneratedInputDeviceIndex = 0 [static, protected] |
Incremented count for next index.
std::string input::InputDevice::mVendor [protected] |
Referenced by getVendor(), 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)
|