Skip to content

Commit

Permalink
(retroarch.c) Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Apr 10, 2018
1 parent 86ea986 commit ac51112
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2838,23 +2838,27 @@ static enum runloop_state runloop_check_state(

if (new_button_state && !old_button_state)
{
if (input_nonblock_state) {
if (input_nonblock_state)
{
input_driver_unset_nonblock_state();
runloop_fastmotion = false;
}
else {
else
{
input_driver_set_nonblock_state();
runloop_fastmotion = true;
}
driver_set_nonblock_state();
}
else if (old_hold_button_state != new_hold_button_state)
{
if (new_hold_button_state) {
if (new_hold_button_state)
{
input_driver_set_nonblock_state();
runloop_fastmotion = true;
}
else {
else
{
input_driver_unset_nonblock_state();
runloop_fastmotion = false;
}
Expand Down Expand Up @@ -2967,21 +2971,17 @@ static enum runloop_state runloop_check_state(

if (new_slowmotion_button_state && !old_slowmotion_button_state)
{
if (runloop_slowmotion) {
if (runloop_slowmotion)
runloop_slowmotion = false;
}
else {
else
runloop_slowmotion = true;
}
}
else if (old_slowmotion_hold_button_state != new_slowmotion_hold_button_state)
{
if (new_slowmotion_hold_button_state) {
if (new_slowmotion_hold_button_state)
runloop_slowmotion = true;
}
else {
else
runloop_slowmotion = false;
}
}

if (runloop_slowmotion)
Expand Down

0 comments on commit ac51112

Please sign in to comment.