summaryrefslogtreecommitdiff
path: root/src/zx81.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-05-23 20:58:26 +0000
committerIan C <ianc@noddybox.co.uk>2021-05-23 20:58:26 +0000
commita4614438629c66914a6b8ee9696fe85eb5f4c4b0 (patch)
treecf8c7f82d1683cefd0c3b9aba6760913d3baa43b /src/zx81.c
parent52d944a701d685ae8a91fe2f38485c4c61827d88 (diff)
Updates for SDL2HEADmaster
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)