mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Have to comment out turbo button functionality again for RARCH_CONSOLE
This commit is contained in:
parent
bcb8e39d05
commit
e717e20643
@ -602,6 +602,10 @@ void rarch_input_poll(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef RARCH_CONSOLE
|
||||
/* TODO/FIXME - I'd really like to know why this breaks jumping in games like Mario World on consoles - can't
|
||||
* jump high with this - binds that need to be initialized? */
|
||||
|
||||
// Turbo scheme: If turbo button is held, all buttons pressed except for D-pad will go into
|
||||
// a turbo mode. Until the button is released again, the input state will be modulated by a periodic pulse defined
|
||||
// by the configured duty cycle.
|
||||
@ -617,6 +621,7 @@ static bool input_apply_turbo(unsigned port, unsigned id, bool res)
|
||||
else
|
||||
return res;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int16_t input_state(unsigned port, unsigned device, unsigned index, unsigned id)
|
||||
{
|
||||
@ -662,9 +667,13 @@ static int16_t input_state(unsigned port, unsigned device, unsigned index, unsig
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef RARCH_CONSOLE
|
||||
/* TODO/FIXME - I'd really like to know why this breaks jumping in games like Mario World on consoles - can't
|
||||
* jump high with this - binds that need to be initialized? */
|
||||
// Don't allow turbo for D-pad.
|
||||
if (device == RETRO_DEVICE_JOYPAD && (id < RETRO_DEVICE_ID_JOYPAD_UP || id > RETRO_DEVICE_ID_JOYPAD_RIGHT))
|
||||
res = input_apply_turbo(port, id, res);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BSV_MOVIE
|
||||
if (g_extern.bsv.movie && !g_extern.bsv.movie_playback)
|
||||
|
Loading…
x
Reference in New Issue
Block a user