diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2012-04-21 17:01:43 +0000 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2012-04-21 17:01:43 +0000 |
commit | dcc116d1e110fbfb5368331a6c5099022f477556 (patch) | |
tree | 0a5fe243d1eb3d15eacfc0d7b39cdb9daac2ab20 /gui.c | |
parent | bb5452a4a8e50d02efd210c70cb804ce16de9daa (diff) |
patch return key for windows folk
Diffstat (limited to 'gui.c')
-rw-r--r-- | gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |