#include <inputsystem.h>
Inheritance diagram for kerosin::InputSystem:
Public Member Functions | |
InputSystem () | |
virtual | ~InputSystem () |
virtual bool | Init (kerosin::InputServer *inputServer) |
init the subsystem | |
virtual bool | CreateDevice (const std::string &deviceName)=0 |
creates an instance of a device via zeitgeist object creation. | |
virtual void | AddInput (InputServer::Input &input) |
Add the input to the queue. | |
void | AddInputInternal (InputServer::Input &input) |
this is the actual addition of input to the queue. | |
virtual bool | GetInput (InputServer::Input &input) |
retrieve an input from the queue | |
InputServer * | GetInputServer () |
Protected Member Functions | |
virtual bool | UpdateTimerInput (InputServer::Input &input) |
Protected Attributes | |
InputServer * | mInputServer |
Private Attributes | |
std::deque< InputServer::Input > | mInputQueue |
Definition at line 47 of file inputsystem.h.
|
Definition at line 27 of file inputsystem.cpp. |
|
Definition at line 31 of file inputsystem.cpp. |
|
Add the input to the queue. Uses AddInputInternal. This was necessary to allow derived classes to wrap this call in a mutex and use the definitely unwrapped addition via AddInputInternal(). Reimplemented in InputSystemSDL. Definition at line 44 of file inputsystem.cpp. References AddInputInternal(). Here is the call graph for this function: ![]() |
|
this is the actual addition of input to the queue. It should only be used by InputDevices! Definition at line 73 of file inputsystem.cpp. References mInputQueue. Referenced by AddInput(), MouseSDL::EventFilter(), and KeyboardSDL::EventFilter(). |
|
creates an instance of a device via zeitgeist object creation. Should use name mangling. Implemented in InputSystemSDL. |
|
retrieve an input from the queue
Reimplemented in InputSystemSDL. Definition at line 50 of file inputsystem.cpp. References mInputQueue, and UpdateTimerInput(). Here is the call graph for this function: ![]() |
|
Definition at line 79 of file inputsystem.h. References mInputServer. Referenced by MouseSDL::EventFilter(), KeyboardSDL::EventFilter(), and TimerSDL::GetInput(). |
|
init the subsystem
Reimplemented in InputSystemSDL. Definition at line 36 of file inputsystem.cpp. References mInputServer. |
|
Reimplemented in InputSystemSDL. Definition at line 79 of file inputsystem.cpp. Referenced by GetInput(). |
|
Definition at line 91 of file inputsystem.h. Referenced by AddInputInternal(), and GetInput(). |
|
Definition at line 88 of file inputsystem.h. Referenced by GetInputServer(), and Init(). |