--- src/tetris.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) Index: ltris-1.3.2/src/tetris.c =================================================================== --- ltris-1.3.2.orig/src/tetris.c +++ ltris-1.3.2/src/tetris.c @@ -463,6 +463,9 @@ void tetris_set_bowl_controls(int i, SDL bc->hdrop = CS_DOWN; if (ev->jbutton.button == config.gp_hold) bc->hold = CS_DOWN; + if (ev->jbutton.button == config.gp_pause) + if ( b ) + bowl_toggle_pause( b ); } } } @@ -515,12 +518,12 @@ void tetris_run() SDL_ShowCursor( 0 ); - fpsStart = SDL_GetTicks(); - fpsCycles = 0; - if (config.fps == 1) - maxDelay = 20; - else - maxDelay = 17; + fpsStart = SDL_GetTicks(); + fpsCycles = 0; + if (config.fps == 1) + maxDelay = 20; + else + maxDelay = 17; /* main loop */ fade_screen( FADE_IN, FADE_DEF_TIME ); @@ -544,6 +547,8 @@ void tetris_run() leave = 1; }else if (event.key.keysym.sym == config.pause_key) request_pause = 1; + else if (event.type == SDL_JOYBUTTONDOWN && event.jbutton.button == config.gp_pause) + request_pause = 1; else switch ( event.key.keysym.sym ) { case SDLK_F5: gamepad_close();