Platform Data Engine 0.0.1
A data-driven game engine for platformers
PlatformDataEngine::InputManager Class Referenceabstract

The base class for an input manager, other classes can inherit this to feed input to the game. For example, if you had some hardware like a motion controller, midi keyboard or other weird device, you could make an input manager for it. More...

#include <InputManager.h>

Inheritance diagram for PlatformDataEngine::InputManager:
PlatformDataEngine::NetworkInputManager PlatformDataEngine::PlayerInputManager

Classes

class  Axis
 Defines an axis, this is usually something like a joystick slider or knob More...
 
class  Button
 Defines a button (ie. something with a true/false state) More...
 

Public Member Functions

virtual sf::Vector2f getMouse ()=0
 
virtual AxisgetAxis (const std::string &axisName)=0
 
virtual ButtongetButton (const std::string &button)=0
 

Detailed Description

The base class for an input manager, other classes can inherit this to feed input to the game. For example, if you had some hardware like a motion controller, midi keyboard or other weird device, you could make an input manager for it.

Member Function Documentation

◆ getAxis()

virtual Axis & PlatformDataEngine::InputManager::getAxis ( const std::string &  axisName)
pure virtual

◆ getButton()

virtual Button & PlatformDataEngine::InputManager::getButton ( const std::string &  button)
pure virtual

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