mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
vo_sdl: Acknowledge when the mouse enters or leaves the window
This commit is contained in:
parent
619b466cef
commit
c2ab4d22b4
@ -536,6 +536,12 @@ static void wait_events(struct vo *vo, int64_t until_time_us)
|
||||
check_resize(vo);
|
||||
vo_event(vo, VO_EVENT_RESIZE);
|
||||
break;
|
||||
case SDL_WINDOWEVENT_ENTER:
|
||||
mp_input_put_key(vo->input_ctx, MP_KEY_MOUSE_ENTER);
|
||||
break;
|
||||
case SDL_WINDOWEVENT_LEAVE:
|
||||
mp_input_put_key(vo->input_ctx, MP_KEY_MOUSE_LEAVE);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
|
Loading…
Reference in New Issue
Block a user