aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/window/window.h b/include/mgl/window/window.h
index 95e3273..2ce9a4b 100644
--- a/include/mgl/window/window.h
+++ b/include/mgl/window/window.h
@@ -31,6 +31,7 @@ struct mgl_window {
mgl_view view;
bool open;
bool focused;
+ bool key_repeat_enabled;
double frame_time_limit;
mgl_clock frame_timer;
char *clipboard_string;
@@ -81,5 +82,6 @@ void mgl_window_set_size_limits(mgl_window *self, mgl_vec2i minimum, mgl_vec2i m
void mgl_window_set_clipboard(mgl_window *self, const char *str, size_t size);
/* A malloc'ed and null terminated string is returned in |str|, it should be deallocated with free */
bool mgl_window_get_clipboard(mgl_window *self, char **str, size_t *size);
+void mgl_window_set_key_repeat_enabled(mgl_window *self, bool enabled);
#endif /* MGL_WINDOW_H */