From db8678d64bca76a1bedc8d16005d0edea4ae0fa9 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 15 Feb 2016 15:24:27 +0000 Subject: [PATCH] Don't use key repeat. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 005ba93..bdc0517 100644 --- a/src/main.c +++ b/src/main.c @@ -77,7 +77,7 @@ int main(int argc, char *argv[]) break; case SDL_KEYDOWN: - if (event.key.keysym.scancode >= 0 && event.key.keysym.scancode < MAX_KEYBOARD_KEYS) + if (event.key.keysym.scancode >= 0 && event.key.keysym.scancode < MAX_KEYBOARD_KEYS && event.key.repeat == 0) { app.keyboard[event.key.keysym.scancode] = 1; }