summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2019-12-25 20:42:44 +0200
committeravih <avih@users.noreply.github.com>2020-11-16 20:29:58 +0200
commita7686679564de584eaa720a6f682c8bd8ad062e6 (patch)
tree81d377e6b29e5ccbd6863bac1451a2beb233859d /player/lua
parent799d3d4557e3655f9a373b6a7009790d3fa92e70 (diff)
downloadmpv-a7686679564de584eaa720a6f682c8bd8ad062e6.tar.bz2
mpv-a7686679564de584eaa720a6f682c8bd8ad062e6.tar.xz
command: new property: mouse-pos
This is a read-only MPV_NODE value with integer fields: x, y. The values are unmodified from mp_input_get_mouse_pos(...). Observer notification of this property is tied to the INPUT_PROCESSED event, which fires after mouse move even if no command is bound (dummy commands are generated if nothing is bound to ensure that mp_input_get_mouse_pos returns the latest values - see ac927e39 ). This allows clients such as JSON IPC to observe mouse position even while the OSC is enabled - the OSC force-binds mouse move for most of the window area, making it impossible for other clients to bind mouse move without breaking the OSC.
Diffstat (limited to 'player/lua')
0 files changed, 0 insertions, 0 deletions