summaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-06-08 13:57:47 +0200
committerAndre Weissflog <floooh@gmail.com>2019-06-08 13:57:47 +0200
commit19eaf63103fc7afd6b50b43327312f3a1e3ce1a9 (patch)
treed6888603bd81bb31215d3e887e942936842c49be /sokol_app.h
parent4b17d948049e998d3d9059a201723bb08c0baf0d (diff)
sokol_app.h emscripten: add event key_repeat support
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 69bb467f..5525e9ca 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -2135,6 +2135,7 @@ _SOKOL_PRIVATE EM_BOOL _sapp_emsc_key_cb(int emsc_type, const EmscriptenKeyboard
}
if (type != SAPP_EVENTTYPE_INVALID) {
_sapp_init_event(type);
+ _sapp.event.key_repeat = emsc_event->repeat;
if (emsc_event->ctrlKey) {
_sapp.event.modifiers |= SAPP_MODIFIER_CTRL;
}