mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
command: disc-mouse-on-button property
This property indicates whether mouse cursor is located on button or not for disc naviation.
This commit is contained in:
@@ -455,7 +455,9 @@ static void handle_nav_command(stream_t *s, struct mp_nav_cmd *ev)
|
||||
bd_vk_key_e key = translate_nav_menu_action(action);
|
||||
if (key != BD_VK_NONE) {
|
||||
if (key == BD_VK_MOUSE_ACTIVATE)
|
||||
bd_mouse_select(priv->bd, pts, priv->mousex, priv->mousey);
|
||||
ev->mouse_on_button = bd_mouse_select(priv->bd, pts,
|
||||
priv->mousex,
|
||||
priv->mousey);
|
||||
bd_user_input(priv->bd, pts, key);
|
||||
} else if (strcmp(action, "menu") == 0) {
|
||||
if (priv->popup_enabled)
|
||||
@@ -467,7 +469,9 @@ static void handle_nav_command(stream_t *s, struct mp_nav_cmd *ev)
|
||||
} case MP_NAV_CMD_MOUSE_POS:
|
||||
priv->mousex = ev->u.mouse_pos.x;
|
||||
priv->mousey = ev->u.mouse_pos.y;
|
||||
bd_mouse_select(priv->bd, mp_time_us(), priv->mousex, priv->mousey);
|
||||
ev->mouse_on_button = bd_mouse_select(priv->bd, mp_time_us(),
|
||||
priv->mousex,
|
||||
priv->mousey);
|
||||
break;
|
||||
case MP_NAV_CMD_SKIP_STILL:
|
||||
bd_read_skip_still(priv->bd);
|
||||
|
||||
Reference in New Issue
Block a user