comparison src/sdl/SDL.cpp @ 176:95b2758dd517

wrote functions to read and write pokemon DV values and status
author Robert McIntyre <rlm@mit.edu>
date Wed, 21 Mar 2012 22:13:43 -0500
parents 1ff2c546f5ad
children fa7676dbf6f2
comparison
equal deleted inserted replaced
175:5d9a7a0ca09a 176:95b2758dd517
2061 2061
2062 SDL_Quit(); 2062 SDL_Quit();
2063 } 2063 }
2064 2064
2065 int tick () { 2065 int tick () {
2066 return theEmulator.emuMain(theEmulator.emuCount); 2066 int ret;
2067 ret = theEmulator.emuMain(theEmulator.emuCount);
2068 // enable user input while ticking.
2069 if (ret) { sdlPollEvents(); }
2067 } 2070 }
2068 2071
2069 void step () { 2072 void step () {
2070 if(!paused && active) { 2073 if(!paused && active) {
2071 //printf("RLM: emulator main\n"); 2074 //printf("RLM: emulator main\n");