X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Femu.c;h=c236778ffa0826c6051b3a0c0f92624c3ae9eb01;hb=9839d126cc1cf782fad713f4fbc3611cba628ade;hp=99fca4979005f145e3d32b78012a2f472c8969e4;hpb=ea8c405fa721a8658b1f7c51cf6238ba2bba8a17;p=picodrive.git diff --git a/platform/common/emu.c b/platform/common/emu.c index 99fca49..c236778 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -446,12 +446,13 @@ int emu_ReadConfig(int game, int no_defaults) if (currentConfig.CPUclock < 10 || currentConfig.CPUclock > 4096) currentConfig.CPUclock = 200; if (currentConfig.gamma < 10 || currentConfig.gamma > 300) currentConfig.gamma = 100; if (currentConfig.volume < 0 || currentConfig.volume > 99) currentConfig.volume = 50; +#ifdef __GP2X__ // if volume keys are unbound, bind them to volume control if (!currentConfig.KeyBinds[23] && !currentConfig.KeyBinds[22]) { currentConfig.KeyBinds[23] = 1<<29; // vol up currentConfig.KeyBinds[22] = 1<<30; // vol down } - +#endif if (bread > 0) config_slot_current = config_slot; return (bread > 0); // == sizeof(currentConfig)); }