use key down for input

This commit is contained in:
Logan McNaughton
2025-02-18 14:25:24 +01:00
parent bb2da243b3
commit b01c2d1885
2 changed files with 4 additions and 5 deletions
+1 -3
View File
@@ -157,10 +157,8 @@ bool sdl_event_filter(void *userdata, SDL_Event *event)
{
wsi_platform->do_resize();
}
else if (event->type == SDL_EVENT_KEY_DOWN)
else if (event->type == SDL_EVENT_KEY_DOWN && !event->key.repeat)
{
if (event->key.repeat)
return 0;
switch (event->key.scancode)
{
case SDL_SCANCODE_RETURN: