Merge pull request #10 from enduro2d/hotfix/update_modules

Hotfix/update modules
This commit is contained in:
BlackMat MATov
2019-03-17 19:42:33 +07:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -14,12 +14,18 @@ namespace
void process(ecs::registry& owner) override {
E2D_UNUSED(owner);
const keyboard& k = the<input>().keyboard();
if ( k.is_key_just_released(keyboard_key::f12) ) {
the<dbgui>().toggle_visible(!the<dbgui>().visible());
}
if ( k.is_key_just_released(keyboard_key::escape) ) {
the<window>().set_should_close(true);
}
if ( k.is_key_pressed(keyboard_key::lsuper) && k.is_key_just_released(keyboard_key::enter) ) {
the<window>().toggle_fullscreen(!the<window>().fullscreen());
}
}
};