mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 14:42:27 +00:00
(Zarch) Add menu_input_mouse_state
This commit is contained in:
parent
70ddbdb601
commit
579eb3cd72
@ -233,8 +233,8 @@ static void zui_begin(void)
|
||||
|
||||
|
||||
/* why do i need this? */
|
||||
zui->mouse.wheel = input_driver_state(binds, 0, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_WHEELDOWN) -
|
||||
input_driver_state(binds, 0, RETRO_DEVICE_MOUSE, 0, RETRO_DEVICE_ID_MOUSE_WHEELUP);
|
||||
zui->mouse.wheel = menu_input_mouse_state(MENU_MOUSE_WHEEL_DOWN) -
|
||||
menu_input_mouse_state(MENU_MOUSE_WHEEL_UP);
|
||||
|
||||
zui->ca.coords.vertices = 0;
|
||||
|
||||
|
@ -1081,6 +1081,10 @@ int16_t menu_input_mouse_state(enum menu_input_mouse_state state)
|
||||
return menu->mouse.left;
|
||||
case MENU_MOUSE_RIGHT_BUTTON:
|
||||
return menu->mouse.right;
|
||||
case MENU_MOUSE_WHEEL_UP:
|
||||
return menu->mouse.wheelup;
|
||||
case MENU_MOUSE_WHEEL_DOWN:
|
||||
return menu->mouse.wheeldown;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -70,7 +70,9 @@ enum menu_input_mouse_state
|
||||
MENU_MOUSE_X_AXIS = 0,
|
||||
MENU_MOUSE_Y_AXIS,
|
||||
MENU_MOUSE_LEFT_BUTTON,
|
||||
MENU_MOUSE_RIGHT_BUTTON
|
||||
MENU_MOUSE_RIGHT_BUTTON,
|
||||
MENU_MOUSE_WHEEL_UP,
|
||||
MENU_MOUSE_WHEEL_DOWN
|
||||
};
|
||||
|
||||
enum menu_input_ctl_state
|
||||
|
Loading…
x
Reference in New Issue
Block a user