First batch of changes merged back from Under. Fixes the router, adds magic_enum to FSM, and makes it easy to reset the world.
This commit is contained in:
parent
d583a28b9c
commit
110612c33a
11 changed files with 44 additions and 19 deletions
|
|
@ -305,7 +305,7 @@ namespace gui {
|
|||
|
||||
void FSM::handle_keyboard_mouse() {
|
||||
while(const auto ev = $window.pollEvent()) {
|
||||
auto gui_ev = $router.process_event(ev);
|
||||
auto [gui_ev, mods] = $router.process_event(ev);
|
||||
|
||||
if(gui_ev == Event::KEY_PRESS) {
|
||||
using KEY = sf::Keyboard::Scan;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue