mirror of
https://github.com/enduro2d/enduro2d-bootstrap.git
synced 2025-12-16 22:19:53 +07:00
Merge pull request #10 from enduro2d/hotfix/update_modules
Hotfix/update modules
This commit is contained in:
Submodule modules/enduro2d updated: 259ece970a...c5489d50e1
@@ -14,12 +14,18 @@ namespace
|
|||||||
void process(ecs::registry& owner) override {
|
void process(ecs::registry& owner) override {
|
||||||
E2D_UNUSED(owner);
|
E2D_UNUSED(owner);
|
||||||
const keyboard& k = the<input>().keyboard();
|
const keyboard& k = the<input>().keyboard();
|
||||||
|
|
||||||
if ( k.is_key_just_released(keyboard_key::f12) ) {
|
if ( k.is_key_just_released(keyboard_key::f12) ) {
|
||||||
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
the<dbgui>().toggle_visible(!the<dbgui>().visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( k.is_key_just_released(keyboard_key::escape) ) {
|
if ( k.is_key_just_released(keyboard_key::escape) ) {
|
||||||
the<window>().set_should_close(true);
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user