Window fullscreen toggle & saving size
This commit is contained in:
@@ -68,6 +68,9 @@ void Engine::updateHotkeys() {
|
||||
png::write_image(filename.string(), image.get());
|
||||
std::cout << "saved screenshot as " << filename << std::endl;
|
||||
}
|
||||
if (Events::jpressed(keycode::F11)) {
|
||||
Window::toggleFullscreen();
|
||||
}
|
||||
}
|
||||
|
||||
void Engine::mainloop() {
|
||||
|
||||
Reference in New Issue
Block a user