Browse Source

small fixes

main
h3ndrik 13 years ago
parent
commit
2674a86202
  1. BIN
      sdljpd
  2. 5
      sdljpd.c
  3. 3
      sdljpd.c~

BIN
sdljpd

Binary file not shown.

5
sdljpd.c

@ -849,6 +849,7 @@ int main( int argc, char **argv )
/* Lock Buzzers */ /* Lock Buzzers */
case SDLK_l: case SDLK_l:
lockbz = TRUE; lockbz = TRUE;
system("./set_led 0 0 0 0");
break; break;
/* Unlock Buzzers */ /* Unlock Buzzers */
@ -859,8 +860,8 @@ int main( int argc, char **argv )
/* Reset playing field */ /* Reset playing field */
case SDLK_r: case SDLK_r:
lockbz = FALSE; /* lockbz = FALSE;
system("./set_led 1 1 1 0"); system("./set_led 1 1 1 0"); */
inp = FALSE; inp = FALSE;
enp = FALSE; enp = FALSE;
break; break;

3
sdljpd.c~

@ -125,6 +125,8 @@ void Quit( int returnCode )
Mix_FreeMusic(music); Mix_FreeMusic(music);
music = NULL; music = NULL;
system("./set_led 0 0 0 0");
SDL_JoystickClose(joystick); SDL_JoystickClose(joystick);
SDL_FreeSurface(panel); SDL_FreeSurface(panel);
@ -847,6 +849,7 @@ int main( int argc, char **argv )
/* Lock Buzzers */ /* Lock Buzzers */
case SDLK_l: case SDLK_l:
lockbz = TRUE; lockbz = TRUE;
system("./set_led 0 0 0 0");
break; break;
/* Unlock Buzzers */ /* Unlock Buzzers */

Loading…
Cancel
Save