Platform Data Engine 0.0.1
A data-driven game engine for platformers
|
A basic input manager for keyboard, mouse and gamepad input from a player More...
#include <PlayerInputManager.h>
Classes | |
class | Axis |
class | Button |
Public Member Functions | |
sf::Vector2f | getMouse () |
PlayerInputManager (int gamepadIndex) | |
PlayerInputManager::Axis & | getAxis (const std::string &axisName) |
Gets an axis by name More... | |
PlayerInputManager::Button & | getButton (const std::string &button) |
Gets a button by name More... | |
virtual void | loadDefinition (const std::string &inputManagerFile) |
Loads input manager configuration from a json file More... | |
void | serializeInputs (PDEPacket &packet) |
virtual sf::Vector2f | getMouse ()=0 |
virtual Axis & | getAxis (const std::string &axisName)=0 |
virtual Button & | getButton (const std::string &button)=0 |
A basic input manager for keyboard, mouse and gamepad input from a player
|
virtual |
Gets an axis by name
axisName | the axis name |
Implements PlatformDataEngine::InputManager.
|
virtual |
Gets a button by name
button | the button name |
Implements PlatformDataEngine::InputManager.
|
virtual |
Implements PlatformDataEngine::InputManager.
|
virtual |
Loads input manager configuration from a json file
inputManagerFile |