diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-12-25 20:52:19 +0200 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2020-11-16 20:29:58 +0200 |
commit | 58004ea2ef1a14da51b3f46e1c8565c0a3a91ee0 (patch) | |
tree | 80801338176bfee806bfd98b6904a804fabec527 /waftools/inflector.py | |
parent | 0d5055fe93e35770235902e11ff39b3231e6e1b8 (diff) | |
download | mpv-58004ea2ef1a14da51b3f46e1c8565c0a3a91ee0.tar.bz2 mpv-58004ea2ef1a14da51b3f46e1c8565c0a3a91ee0.tar.xz |
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.
Diffstat (limited to 'waftools/inflector.py')
0 files changed, 0 insertions, 0 deletions