mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-04 07:57:25 +00:00
menu widgets: reimplement slowmotion
This commit is contained in:
parent
7a7f444e55
commit
f036ce442e
23
retroarch.c
23
retroarch.c
@ -4195,15 +4195,22 @@ static enum runloop_state runloop_check_state(
|
||||
if (!runloop_idle)
|
||||
video_driver_cached_frame();
|
||||
|
||||
if (state_manager_frame_is_reversed())
|
||||
runloop_msg_queue_push(
|
||||
msg_hash_to_str(MSG_SLOW_MOTION_REWIND), 1, 1, false, NULL,
|
||||
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
else
|
||||
runloop_msg_queue_push(
|
||||
msg_hash_to_str(MSG_SLOW_MOTION), 1, 1, false,
|
||||
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||
if (!video_driver_has_widgets())
|
||||
{
|
||||
#endif
|
||||
if (state_manager_frame_is_reversed())
|
||||
runloop_msg_queue_push(
|
||||
msg_hash_to_str(MSG_SLOW_MOTION_REWIND), 1, 1, false, NULL,
|
||||
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
else
|
||||
runloop_msg_queue_push(
|
||||
msg_hash_to_str(MSG_SLOW_MOTION), 1, 1, false,
|
||||
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
|
||||
}
|
||||
#if defined(HAVE_MENU) && defined(HAVE_MENU_WIDGETS)
|
||||
}
|
||||
#endif
|
||||
|
||||
old_slowmotion_button_state = new_slowmotion_button_state;
|
||||
old_slowmotion_hold_button_state = new_slowmotion_hold_button_state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user