mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(GLUI/RGUI) Take out scrollup/scrolldown functionality for now
This commit is contained in:
parent
b7c8ea67d8
commit
0d6c5ec4d1
@ -231,15 +231,6 @@ static void glui_draw_cursor(glui_handle_t *glui,
|
||||
if (!gl)
|
||||
return;
|
||||
|
||||
menu_input_ctl(MENU_INPUT_CTL_MOUSE_SCROLL_DOWN, &mouse_scrolldown);
|
||||
menu_input_ctl(MENU_INPUT_CTL_MOUSE_SCROLL_UP, &mouse_scrollup);
|
||||
|
||||
if (mouse_scrolldown)
|
||||
menu->scroll_y += 10;
|
||||
|
||||
if (mouse_scrollup)
|
||||
menu->scroll_y -= 10;
|
||||
|
||||
new_mouse_ptr =
|
||||
(y - glui->line_height + menu->scroll_y - 16)
|
||||
/ glui->line_height;
|
||||
|
@ -499,19 +499,8 @@ static void rgui_render(void)
|
||||
if (settings->menu.mouse.enable)
|
||||
{
|
||||
unsigned new_mouse_ptr;
|
||||
bool mouse_scrolldown, mouse_scrollup;
|
||||
int16_t mouse_y = menu_input_mouse_state(MENU_MOUSE_Y_AXIS);
|
||||
|
||||
menu_input_ctl(MENU_INPUT_CTL_MOUSE_SCROLL_DOWN, &mouse_scrolldown);
|
||||
menu_input_ctl(MENU_INPUT_CTL_MOUSE_SCROLL_UP, &mouse_scrollup);
|
||||
|
||||
if (mouse_scrolldown
|
||||
&& (menu_entries_get_start() < menu_entries_get_end() - RGUI_TERM_HEIGHT(fb_width, fb_height)))
|
||||
menu_entries_set_start(menu_entries_get_start() + 1);
|
||||
|
||||
if (mouse_scrollup && (menu_entries_get_start() > 0))
|
||||
menu_entries_set_start(menu_entries_get_start() - 1);
|
||||
|
||||
new_mouse_ptr = mouse_y / 11 - 2 + menu_entries_get_start();
|
||||
|
||||
menu_input_ctl(MENU_INPUT_CTL_MOUSE_PTR, &new_mouse_ptr);
|
||||
|
@ -854,9 +854,6 @@ static int menu_input_mouse(unsigned *action)
|
||||
if (menu_input->mouse.y > (int)fb_height - 5)
|
||||
menu_input->mouse.y = fb_height - 5;
|
||||
|
||||
menu_input->mouse.scrollup = (menu_input->mouse.y == 5);
|
||||
menu_input->mouse.scrolldown = (menu_input->mouse.y == (int)fb_height - 5);
|
||||
|
||||
if (
|
||||
(menu_input->mouse.dx != 0) ||
|
||||
(menu_input->mouse.dy !=0) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user