Fix MOUSE_ACTION_BUTTON_L_TOGGLE

This commit is contained in:
twinaphex 2015-05-11 23:12:54 +02:00
parent 509f2267c7
commit 79612b2d8c

View File

@ -712,7 +712,7 @@ static int menu_input_mouse_frame(
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L)) if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L))
{ {
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_TOGGLE)) if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_TOGGLE) && menu->mouse.oldleft)
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true); return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_OK)) if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_OK))