aboutsummaryrefslogtreecommitdiff
path: root/gui.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-21 17:01:43 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-21 17:01:43 +0000
commitdcc116d1e110fbfb5368331a6c5099022f477556 (patch)
tree0a5fe243d1eb3d15eacfc0d7b39cdb9daac2ab20 /gui.c
parentbb5452a4a8e50d02efd210c70cb804ce16de9daa (diff)
patch return key for windows folk
Diffstat (limited to 'gui.c')
-rw-r--r--gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui.c b/gui.c
index 71daf27..ba05309 100644
--- a/gui.c
+++ b/gui.c
@@ -219,13 +219,13 @@ guiemu(unsigned short *m, unsigned short *r)
case SDLK_RIGHT:
m[KEYB + k] = 39;
break;
+ case SDLK_RETURN:
+ m[KEYB + k] = 10;
+ break;
default:
m[KEYB + k] = event.key.keysym.sym;
- if (event.key.keysym.mod & KMOD_SHIFT)
- m[KEYB + k] -= 0x20;
break;
}
- printf("%d\n", m[KEYB + k]);
k = (k + 1) % 0x10;
break;
}