comparison src/sdl/SDL.cpp @ 55:719d910c90f8

can now send button presses to the simulated gameboy
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 13:24:32 -0600
parents 9d0ec2614443
children 43d4fb2a6fc2
comparison
equal deleted inserted replaced
54:88218735d220 55:719d910c90f8
2088 } 2088 }
2089 } else { 2089 } else {
2090 SDL_Delay(500); 2090 SDL_Delay(500);
2091 } 2091 }
2092 sdlPollEvents(); 2092 sdlPollEvents();
2093 if(mouseCounter) { 2093 SDL_ShowCursor(SDL_DISABLE);
2094 mouseCounter--; 2094 }
2095 if(mouseCounter == 0) 2095
2096 SDL_ShowCursor(SDL_DISABLE); 2096 void step(int keymask){
2097 } 2097 currentButtons[0] = keymask;
2098 } 2098 step();
2099 currentButtons[0] = keymask;
2100 }
2101
2102
2099 2103
2100 int main(int argc, char **argv) 2104 int main(int argc, char **argv)
2101 { 2105 {
2102 fprintf(stderr, "VisualBoyAdvance version %s [SDL]\n", PACKAGE_VERSION); 2106 fprintf(stderr, "VisualBoyAdvance version %s [SDL]\n", PACKAGE_VERSION);
2103 2107