i6engine  1.0
i6e::modules::InputController Class Reference

Initializes the event listeners for keyboard and mouse input.
Responsible for sending input events to other subsystems via messages. More...

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/modules/input/InputController.h>

Public Member Functions

 InputController ()
 constructor More...
 
- Public Member Functions inherited from i6e::core::ModuleController
 ModuleController (Subsystem sub)
 Constructs a new ModuleController with the given subsystem type. More...
 
virtual ~ModuleController ()
 Destructor. More...
 
void startThreadTicking (const uint32_t lngFrameTime)
 Starts the thread synchronously of the subsystem and tells the SubSystemController about completion. More...
 
void startThreadWaiting (const std::set< Subsystem > &waitingFor)
 Starts the thread synchronously of the subsystem and tells the SubSystemController about completion. More...
 
uint32_t getFrameTime () const
 Gets the frametime of this Subsystem. More...
 
void setController (SubSystemController *ssc, EngineCoreController *ecc, MessagingController *mc)
 registers necessary controllers for this Subsystem More...
 
Subsystem getSubsystem () const
 
- Public Member Functions inherited from i6e::core::MessageSubscriber
 MessageSubscriber ()
 Standard constructor. More...
 
virtual ~MessageSubscriber ()
 Destructor. More...
 
void receiveMessage (const Message::Ptr &msg)
 This method is called from the MessagingController. It stores incoming messages in a local buffer. More...
 
void notifyNewID (const int64_t id)
 This method notifies the MessagingController that Messages waiting for this id can now be delivered. More...
 
void buffer (const ReceivedMessagePtr &msg)
 Calls deliverMessageInternal if the message should be delivered now, buffers it if not. More...
 
void reset ()
 todo More...
 
void addMethod (uint16_t msgType, const boost::function< void(const Message::Ptr &)> &ptrMessageMethod)
 adds a method for given message type where messages shall be delivered More...
 
void removeMethod (uint16_t msgType)
 removes method for given message type More...
 

Protected Member Functions

void OnThreadStart () override
 Called when starting the thread of the input subsystem. More...
 
void ShutDown () override
 Called when shutting down the input subsystem. More...
 
void Tick () override
 Called on every tick of the input subsystem. More...
 
- Protected Member Functions inherited from i6e::core::ModuleController
void processMessages () override
 override of processMessages of MessageSubscriber for waiting subsystems More...
 
- Protected Member Functions inherited from i6e::core::MessageSubscriber
void swapMessageBuffer ()
 This method will swap the double message buffer. For synchronization reasons. More...
 
bool updateBuffer ()
 This method delivers all waiting Messages that can now be delivered. More...
 

Additional Inherited Members

- Protected Attributes inherited from i6e::core::ModuleController
Subsystem _subsystem
 the Subsystem More...
 
uint32_t _frameTime
 the frame time of the Subsystem More...
 
MessagingController_messagingController
 pointer to MessagingController More...
 
- Protected Attributes inherited from i6e::core::MessageSubscriber
boost::mutex _objMessageVectorMutex
 
MessageVector _objMessageVectorA
 
MessageVector _objMessageVectorB
 
MessageVector_objActiveMessageVector
 
MessageVector_objInActiveMessageVector
 
std::map< uint16_t, boost::function< void(const Message::Ptr &)> > _ptrMessageMethod
 

Detailed Description

Initializes the event listeners for keyboard and mouse input.
Responsible for sending input events to other subsystems via messages.

Definition at line 45 of file InputController.h.

Constructor & Destructor Documentation

i6e::modules::InputController::InputController ( )

constructor

Member Function Documentation

void i6e::modules::InputController::OnThreadStart ( )
overrideprotectedvirtual

Called when starting the thread of the input subsystem.

Initializes the input library and registers input devices.

Implements i6e::core::ModuleController.

void i6e::modules::InputController::ShutDown ( )
overrideprotectedvirtual

Called when shutting down the input subsystem.

Unregisters input devices and cleans up memory.

Implements i6e::core::ModuleController.

void i6e::modules::InputController::Tick ( )
overrideprotectedvirtual

Called on every tick of the input subsystem.

Wrapper for local method captureDevices() .

Implements i6e::core::ModuleController.


The documentation for this class was generated from the following file: