Emergency 20 Dokumentation  4.2.0
em5::GameInputHandler Class Reference

EMERGENCY 5 main game input handler class. More...

#include <GameInputHandler.h>

Inheritance diagram for em5::GameInputHandler:
qsf::InputHandler qsf::InputListener

Public Member Functions

 GameInputHandler (uint32 id)
 Constructor. More...
 
virtual ~GameInputHandler ()
 Destructor. More...
 
bool isCurrentCommandButtonPressedByIndex (size_t index) const
 Returns "true" if the command button with the given index is currently pressed. More...
 
void resetCurrentCommandButtonPressed ()
 Reset the internal value for the current command button pressed. More...
 
bool getRightMouseButtonWasDragged () const
 Return whether or not the right mouse button usage currently counts as click or drag. More...
 
- Public Member Functions inherited from qsf::InputHandler
 InputHandler (uint32 id)
 Constructor. More...
 
virtual ~InputHandler ()
 Destructor. More...
 
uint32 getId ()
 Return the handler's ID. More...
 
virtual void initialize ()
 Gets called after the input handler was created -> This is needed to support special initialization in derived classes. More...
 
- Public Member Functions inherited from qsf::InputListener
 InputListener ()
 Default constructor. More...
 
virtual ~InputListener ()
 Destructor. More...
 
WindowgetFocusWindow () const
 Return the focus window. More...
 
void setFocusWindow (Window *focusWindow)
 Set focus window. More...
 

Protected Member Functions

virtual void updateInputHandler (const qsf::Time &timePassed) override
 Update the input handler. More...
 
virtual void eventReceived (const qsf::InputEvent &inputEvent, Response &response) override
 React to input events. More...
 

Detailed Description

EMERGENCY 5 main game input handler class.

Constructor & Destructor Documentation

em5::GameInputHandler::GameInputHandler ( uint32  id)
explicit

Constructor.

virtual em5::GameInputHandler::~GameInputHandler ( )
virtual

Destructor.

Member Function Documentation

virtual void em5::GameInputHandler::eventReceived ( const qsf::InputEvent inputEvent,
Response response 
)
overrideprotectedvirtual

React to input events.

Reimplemented from qsf::InputHandler.

bool em5::GameInputHandler::getRightMouseButtonWasDragged ( ) const

Return whether or not the right mouse button usage currently counts as click or drag.

bool em5::GameInputHandler::isCurrentCommandButtonPressedByIndex ( size_t  index) const

Returns "true" if the command button with the given index is currently pressed.

void em5::GameInputHandler::resetCurrentCommandButtonPressed ( )

Reset the internal value for the current command button pressed.

virtual void em5::GameInputHandler::updateInputHandler ( const qsf::Time timePassed)
overrideprotectedvirtual

Update the input handler.

Reimplemented from qsf::InputHandler.


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