#include <InputHandler.h>
Public Member Functions | |
virtual | ~InputHandler () |
void | set_scene (Scene &scene) |
void | poll () |
iterator | begin () |
Get an iterator to the first input device. | |
iterator | end () |
Get an iterator to one past the last input device. | |
std::size_t | get_number_of_devices () const |
Get the number of devices found. | |
iterator | add_device (InputDevice &device) |
Use an input device. | |
void | remove_device (InputDevice &device) |
Stop using an input device. | |
void | remove_device (iterator it) |
Stop using an input device. | |
Static Public Member Functions | |
static InputHandler & | get_instance () |
Private Member Functions | |
InputHandler () | |
void | init () |
Initalise keyboard and joystick devices. | |
Private Attributes | |
std::set< InputDevice * > | devices |
Scene * | scene |
InputDeviceKeyboard * | keyboard |
std::vector< InputDeviceJoystick * > | joysticks |
a list of joystick devices avaliable on the system. | |
Classes | |
class | iterator |
Definition at line 25 of file InputHandler.h.
Engine::InputHandler::~InputHandler | ( | ) | [virtual] |
Definition at line 51 of file InputHandler.cpp.
Engine::InputHandler::InputHandler | ( | ) | [private] |
Definition at line 21 of file InputHandler.cpp.
InputHandler::iterator Engine::InputHandler::add_device | ( | InputDevice & | device | ) |
Use an input device.
Call remove_device() with the same object or with the returned iterator when done.
Definition at line 70 of file InputHandler.cpp.
InputHandler::iterator Engine::InputHandler::begin | ( | ) |
InputHandler::iterator Engine::InputHandler::end | ( | ) |
InputHandler & Engine::InputHandler::get_instance | ( | ) | [static] |
Definition at line 63 of file InputHandler.cpp.
std::size_t Engine::InputHandler::get_number_of_devices | ( | ) | const |
void Engine::InputHandler::init | ( | ) | [private] |
Initalise keyboard and joystick devices.
Definition at line 27 of file InputHandler.cpp.
void Engine::InputHandler::poll | ( | ) |
Definition at line 98 of file InputHandler.cpp.
void Engine::InputHandler::remove_device | ( | iterator | it | ) |
void Engine::InputHandler::remove_device | ( | InputDevice & | device | ) |
void Engine::InputHandler::set_scene | ( | Scene & | scene | ) |
Definition at line 89 of file InputHandler.cpp.
std::set<InputDevice *> Engine::InputHandler::devices [private] |
Definition at line 77 of file InputHandler.h.
std::vector<InputDeviceJoystick *> Engine::InputHandler::joysticks [private] |
Definition at line 82 of file InputHandler.h.
Scene* Engine::InputHandler::scene [private] |
Definition at line 80 of file InputHandler.h.
Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.