From a4614438629c66914a6b8ee9696fe85eb5f4c4b0 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 23 May 2021 20:58:26 +0000 Subject: Updates for SDL2 --- src/zx81.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/zx81.c') diff --git a/src/zx81.c b/src/zx81.c index 9fcc6e1..d6873b5 100644 --- a/src/zx81.c +++ b/src/zx81.c @@ -100,7 +100,7 @@ static Z80Byte matrix[8]; typedef struct { - SDLKey key; + SDL_Keycode key; int m1,b1,m2,b2; } MatrixMap; @@ -493,6 +493,11 @@ void ZX81KeyEvent(SDL_Event *e) { const MatrixMap *m; + if (e->key.repeat) + { + return; + } + m=keymap; while(m->key!=SDLK_UNKNOWN) -- cgit v1.2.3