Skip to content

Commit 994a5cd

Browse files
committed
Fix pointer Resume trigger
1 parent 46c5353 commit 994a5cd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

menu/menu_driver.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5322,6 +5322,10 @@ unsigned menu_event(
53225322
if (menu_st->flags & MENU_ST_FLAG_BLOCK_ALL_INPUT)
53235323
return MENU_ACTION_NOOP;
53245324

5325+
/* Clear OK if dragged */
5326+
if (menu_input->pointer.flags & MENU_INP_PTR_FLG_DRAGGED)
5327+
ok_current = ok_trigger = ok_trigger_release = 0;
5328+
53255329
ok_old = ok_current;
53265330

53275331
/* Get pointer (mouse + touchscreen) input
@@ -5790,7 +5794,7 @@ unsigned menu_event(
57905794
|| keydown[RETRO_DEVICE_ID_JOYPAD_RIGHT]
57915795
|| keydown[menu_cancel_btn]
57925796
)
5793-
ok_trigger = false;
5797+
ok_trigger = 0;
57945798

57955799
memset(keydown, 0, sizeof(keydown));
57965800
}

0 commit comments

Comments
 (0)