Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <InputManager.h>
Public Member Functions | |
InputDevice * | createInputDevice (InputType type, bool buffered) |
Cursor * | getCursor () |
InputManager () | |
Default constructor. | |
s32 | numJoySticks () |
Returns the number of joysticks found. | |
s32 | numKeyboards () |
Returns the number of keyboards found. | |
s32 | numMice () |
Returns the number of mice found. | |
void | removeAllInputDevices () |
void | removeInputDevice (InputDevice *device) |
void | removeInputDevice (const u32 &id) |
void | removeInputDriver () |
void | setInputDriver (InputDriver *driver) |
void | start () |
void | stop () |
~InputManager () | |
Static Public Member Functions | |
static InputManager * | getInstance () |
Get instance. | |
Protected Member Functions | |
void | initializeImpl () |
void | uninitializeImpl () |
void | updateImpl (f32 elapsedTime) |
Protected Attributes | |
Cursor * | mCursor |
core::position2d | mCursorCenter |
std::map< u32, InputDevice * > | mInputDevices |
InputDriver * | mInputDriver |
input::InputManager::InputManager | ( | ) |
Default constructor.
References getInstance(), mCursor, mCursorCenter, mInputDriver, engine::Object::mObjectType, engine::OT_INPUT_MANAGER, core::position2d::X, and core::position2d::Y.
input::InputManager::~InputManager | ( | ) |
References getInstance().
InputDevice * input::InputManager::createInputDevice | ( | InputType | type, |
bool | buffered | ||
) |
References input::InputDriver::createInputDevice(), engine::Object::getID(), mInputDevices, and mInputDriver.
InputManager * input::InputManager::getInstance | ( | ) | [static] |
Get instance.
Reimplemented from core::Singleton< InputManager >.
Referenced by initializeImpl(), InputManager(), uninitializeImpl(), and ~InputManager().
void input::InputManager::initializeImpl | ( | ) | [protected, virtual] |
Reimplemented from engine::Object.
References input::InputDriver::getCursorCenter(), getInstance(), input::InputDriver::initialize(), mCursorCenter, and mInputDriver.
s32 input::InputManager::numJoySticks | ( | ) |
Returns the number of joysticks found.
References mInputDriver, and input::InputDriver::numJoySticks().
s32 input::InputManager::numKeyboards | ( | ) |
Returns the number of keyboards found.
References mInputDriver, and input::InputDriver::numKeyboards().
s32 input::InputManager::numMice | ( | ) |
Returns the number of mice found.
References mInputDriver, and input::InputDriver::numMice().
void input::InputManager::removeAllInputDevices | ( | ) |
References mInputDevices, mInputDriver, and input::InputDriver::removeInputDevice().
Referenced by uninitializeImpl().
void input::InputManager::removeInputDevice | ( | const u32 & | id | ) |
References mInputDevices, mInputDriver, and input::InputDriver::removeInputDevice().
void input::InputManager::removeInputDevice | ( | InputDevice * | device | ) |
References engine::Object::getID().
void input::InputManager::removeInputDriver | ( | ) |
References mInputDriver.
void input::InputManager::setInputDriver | ( | InputDriver * | driver | ) |
References input::InputDriver::getCursor(), mCursor, and mInputDriver.
void input::InputManager::start | ( | ) |
Referenced by engine::EngineManager::start().
void input::InputManager::stop | ( | ) |
Referenced by engine::EngineManager::stop().
void input::InputManager::uninitializeImpl | ( | ) | [protected, virtual] |
Reimplemented from engine::Object.
References getInstance(), and removeAllInputDevices().
void input::InputManager::updateImpl | ( | f32 | elapsedTime | ) | [protected, virtual] |
Reimplemented from engine::Object.
References mCursor, mInputDevices, mInputDriver, engine::Object::update(), and input::InputDriver::update().
Cursor* input::InputManager::mCursor [protected] |
Referenced by getCursor(), InputManager(), setInputDriver(), and updateImpl().
core::position2d input::InputManager::mCursorCenter [protected] |
Referenced by initializeImpl(), and InputManager().
std::map<u32, InputDevice*> input::InputManager::mInputDevices [protected] |
Referenced by createInputDevice(), removeAllInputDevices(), removeInputDevice(), and updateImpl().
InputDriver* input::InputManager::mInputDriver [protected] |
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|