mpv/input
Avi Halachmi (:avih) 58004ea2ef command: mouse-pos property: add field "hover"
Add a third field: "hover", which is updated from input.c after input
keys MP_KEY_MOUSE_LEAVE and MP_KEY_MOUSE_ENTER - which are typically
sent by the VO.

It's part of mouse-pos and not a new property because it's highly tied
to mouse-pos - it makes x/y invalid while the cursor doesn't hover the
window.

Unike mouse-move, no dummy command was generated, so we add dummy
command in order for observer notification to work even while nothing
is bound.

Like mouse-pos, clients could not detect whether the mouse pointer
hovers the window because the OSC force-binds the MOUSE_LEAVE key, and
now they can using the hover field.

The lua mp.get_mouse_pos() wrapper still returns only x, y because
that's what osc.lua needs. Other clients can simply read the property.
2020-11-16 20:29:58 +02:00
..
cmd.c input: log commands with parameter names 2020-02-19 16:25:18 +01:00
cmd.h options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
event.c input: ignore empty lines on drag-drop mime data 2019-09-21 15:39:47 +02:00
event.h input/event.h: add include guard 2016-03-15 22:44:15 +01:00
input.c command: mouse-pos property: add field "hover" 2020-11-16 20:29:58 +02:00
input.h command: mouse-pos property: add field "hover" 2020-11-16 20:29:58 +02:00
ipc-dummy.c scripting: add a way to run sub processes as "scripts" 2020-02-19 22:18:15 +01:00
ipc-unix.c ipc: mark client sockets as CLOEXEC 2020-05-15 16:37:41 +02:00
ipc-win.c scripting: add a way to run sub processes as "scripts" 2020-02-19 22:18:15 +01:00
ipc.c ipc: fix recently added memory leak 2020-03-27 00:07:03 +01:00
keycodes.c command: add input-key-list property 2020-05-14 22:22:33 +02:00
keycodes.h command: add input-key-list property 2020-05-14 22:22:33 +02:00
sdl_gamepad.c sdl: prevent concurrent use of SDL in different threads 2019-10-25 22:17:54 +02:00