mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-05 05:43:47 +01:00
use key down for input
This commit is contained in:
1 parent
bb2da243b3
commit
b01c2d1885
2 files changed
+4
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user