mp.get_mouse_pos() is undocumented and is no longer required - the property can be used officially by any client now, however, osc.lua uses it, and also some user scripts learnt to rely on it, so we keep it - as a trivial wrapper around the new mouse-pos property.
Showing the changes to player/javascript (1 of 4 files). Show all
Unified · Split
| @@ -663,6 +663,7 @@ mp.get_script_file = function() { return mp.script_file }; · 662 unmodified lines | ||
| 663 | 663 | mp.get_script_directory = function() { return mp.script_path }; |
| 664 | 664 | mp.get_time = function() { return mp.get_time_ms() / 1000 }; |
| 665 | 665 | mp.utils.getcwd = function() { return mp.get_property("working-directory") }; |
| 666 | +mp.get_mouse_pos = function() { return mp.get_property_native("mouse-pos") }; | |
| 666 | 667 | mp.dispatch_event = dispatch_event; |
| 667 | 668 | mp.process_timers = process_timers; |
| 668 | 669 | mp.notify_idle_observers = notify_idle_observers; |