Mercurial > vba-clojure
diff src/sdl/SDL.cpp @ 66:43d4fb2a6fc2
resets now work correctly
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 23:23:15 -0600 |
parents | 719d910c90f8 |
children | ff6f1acae59e |
line wrap: on
line diff
1.1 --- a/src/sdl/SDL.cpp Wed Mar 07 21:04:55 2012 -0600 1.2 +++ b/src/sdl/SDL.cpp Wed Mar 07 23:23:15 2012 -0600 1.3 @@ -2095,7 +2095,12 @@ 1.4 1.5 void step(int keymask){ 1.6 currentButtons[0] = keymask; 1.7 - step(); 1.8 + if (keymask == 0x0800){ 1.9 + theEmulator.emuReset(true); 1.10 + } 1.11 + else { 1.12 + step(); 1.13 + } 1.14 currentButtons[0] = keymask; 1.15 } 1.16