X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Femu.c;h=b6bf5a4f83b022e9daff31b60ecd8aacd14747fc;hb=30d5518a0b02afafea4ced92f991838b031d0aad;hp=cbf93efc4ba6784f5597de77dd72cb787eff1390;hpb=339be61dd35263662b6f92f9cc368c16604da435;p=libpicofe.git diff --git a/gp2x/emu.c b/gp2x/emu.c index cbf93ef..b6bf5a4 100644 --- a/gp2x/emu.c +++ b/gp2x/emu.c @@ -465,9 +465,11 @@ static void RunEvents(unsigned int which) (!(which & 0x1000) && (currentConfig.EmuOpt & 0x200))) ) { // save unsigned long keys; blit("", (which & 0x1000) ? "LOAD STATE? (Y=yes, X=no)" : "OVERWRITE SAVE? (Y=yes, X=no)"); - while( !((keys = gp2x_joystick_read(1)) & (GP2X_X|GP2X_Y)) ) + while ( !((keys = gp2x_joystick_read(1)) & (GP2X_X|GP2X_Y)) ) usleep(50*1024); if (keys & GP2X_X) do_it = 0; + while ( gp2x_joystick_read(1) & (GP2X_X|GP2X_Y) ) // wait for release + usleep(50*1024); clearArea(0); } if (do_it) {