summaryrefslogtreecommitdiff
path: root/src/zx81.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zx81.c')
-rw-r--r--src/zx81.c7
1 files changed, 6 insertions, 1 deletions
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)