![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Peoplemon specific input functionality around the BLIB input system. More...
Namespaces | |
Control | |
Wrapper around the enum for player input ids. | |
Typedefs | |
using | EntityControl = std::underlying_type_t< Control::EntityControl > |
Helper typedef to avoid too much casting boilerplate. More... | |
using | MenuDriver = bl::menu::TriggerDriver< Control::MoveUp, Control::MoveRight, Control::MoveDown, Control::MoveLeft, Control::Interact > |
Helper typedef for Peoplemon specific menu driving. More... | |
Functions | |
void | configureInputSystem (bl::input::InputSystem &system) |
Configures the input system for the set of peoplemon inputs. More... | |
EntityControl | fromDirection (bl::tmap::Direction direction) |
Helper method to convert a move direction to a control. More... | |
Peoplemon specific input functionality around the BLIB input system.
using core::input::EntityControl = typedef std::underlying_type_t<Control::EntityControl> |
Helper typedef to avoid too much casting boilerplate.
Definition at line 44 of file Control.hpp.
void core::input::configureInputSystem | ( | bl::input::InputSystem & | system | ) |
Configures the input system for the set of peoplemon inputs.
system | The input system to configure |
Definition at line 7 of file Control.cpp.
EntityControl core::input::fromDirection | ( | bl::tmap::Direction | direction | ) |
Helper method to convert a move direction to a control.
direction | The direction to convert to a control |
Definition at line 36 of file Control.cpp.