aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c
index ee632a7..2155181 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -297,6 +297,10 @@ int main(int argc, char **argv) {
} else {
fprintf(stderr, "Failed to copy clipboard!\n");
}
+ } else if(event.key.code == MGL_KEY_F) {
+ mgl_window_set_fullscreen(&window, !mgl_window_is_fullscreen(&window));
+ } else if(event.key.code == MGL_KEY_X) {
+ mgl_window_set_vsync_enabled(&window, !mgl_window_is_vsync_enabled(&window));
}
fprintf(stderr, "key press event, code: %u\n", event.key.code);
break;