mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +00:00
Add rewind bind to ssnes-joyconfig.
This commit is contained in:
parent
a81d6bc247
commit
de331bcd9e
6
ssnes.c
6
ssnes.c
@ -808,14 +808,18 @@ static void check_rewind(void)
|
||||
|
||||
if (driver.input->key_pressed(driver.input_data, SSNES_REWIND))
|
||||
{
|
||||
msg_queue_clear(g_extern.msg_queue);
|
||||
void *buf;
|
||||
if (state_manager_pop(g_extern.state_manager, &buf))
|
||||
{
|
||||
msg_queue_clear(g_extern.msg_queue);
|
||||
msg_queue_push(g_extern.msg_queue, "Rewinding!", 0, 30);
|
||||
snes_unserialize(buf, snes_serialize_size());
|
||||
g_extern.frame_is_reverse = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
msg_queue_push(g_extern.msg_queue, "Reached end of rewind buffer!", 0, 30);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -88,6 +88,7 @@ static struct bind binds[] = {
|
||||
MISC_BIND("Toggle fast forward", toggle_fast_forward)
|
||||
MISC_BIND("Audio input rate step up", rate_step_up)
|
||||
MISC_BIND("Audio input rate step down", rate_step_down)
|
||||
MISC_BIND("Rewind", rewind)
|
||||
};
|
||||
|
||||
void get_binds(config_file_t *conf, int player, int joypad)
|
||||
|
Loading…
x
Reference in New Issue
Block a user