|
R-Type 0.1
|
Polls window events and turns bound controls into action bits. More...
#include <systems/InputSystem.hpp>
Public Member Functions | |
| InputSystem (std::reference_wrapper< WindowType > window, rtk::InputState &inputState, const rtk::Input::InputMapping &mapping) | |
| Creates the system. | |
| void | onStart (rtk::ecs::Registry &) override |
| Logs that the system is loaded. | |
| void | onStop (rtk::ecs::Registry &) override |
| Does nothing. | |
| void | update (rtk::ecs::Registry ®, float) override |
| Rebuilds the action mask from the current controls. | |
Polls window events and turns bound controls into action bits.
Escape requests the window to close, and F3 held with B toggles the debug overlay.
| WindowType | Window satisfying IsRenderWindow. |
|
inline |
Creates the system.
| window | Window to poll. |
| inputState | State written every frame. |
| mapping | Bindings between controls and actions. |