20 bl::input::Actor& user = system.addActor();
23 user.getKBMTriggerControl(
Control::MoveUp).triggerOnKey(sf::Keyboard::W);
27 user.getKBMTriggerControl(
Control::Sprint).triggerOnKey(sf::Keyboard::LShift);
29 user.getKBMTriggerControl(
Control::Pause).triggerOnKey(sf::Keyboard::Enter);
30 user.getKBMTriggerControl(
Control::Back).triggerOnKey(sf::Keyboard::LControl);
33 system.loadFromConfig();
38 case bl::tmap::Direction::Up:
40 case bl::tmap::Direction::Right:
42 case bl::tmap::Direction::Down:
44 case bl::tmap::Direction::Left:
Core classes and functionality for both the editor and game.
void configureInputSystem(bl::input::InputSystem &system)
Configures the input system for the set of peoplemon inputs.
std::underlying_type_t< Control::EntityControl > EntityControl
Helper typedef to avoid too much casting boilerplate.
EntityControl fromDirection(bl::tmap::Direction direction)
Helper method to convert a move direction to a control.