Peoplemon  0.1.0
Peoplemon 3 game source documentation
Namespaces | Typedefs | Functions
core::input Namespace Reference

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...
 

Detailed Description

Peoplemon specific input functionality around the BLIB input system.

Typedef Documentation

◆ EntityControl

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.

Function Documentation

◆ configureInputSystem()

void core::input::configureInputSystem ( bl::input::InputSystem &  system)

Configures the input system for the set of peoplemon inputs.

Parameters
systemThe input system to configure

Definition at line 7 of file Control.cpp.

◆ fromDirection()

EntityControl core::input::fromDirection ( bl::tmap::Direction  direction)

Helper method to convert a move direction to a control.

Parameters
directionThe direction to convert to a control
Returns
The control to move in the given direction

Definition at line 36 of file Control.cpp.