I’m attempting to get the Mouse while using a Dockable Widget Plugin, but apparently :GetMouse()
Can’t be used with dockable widget plugins.
Anyone know how I would get the mouse?
I’m attempting to get the Mouse while using a Dockable Widget Plugin, but apparently :GetMouse()
Can’t be used with dockable widget plugins.
Anyone know how I would get the mouse?
UserInputService is what you should be using. Its got everything you need.
I made an open-source mouse-emulating library on GitHub that purely uses UserInputService. Lmk if you have any issues, I’m a bad debugger lmao: GitHub - EmeraldSlash/RbxMouse: A mouse library providing a consistent and simple interface to Roblox APIs.
This is a problem I haven’t solved yet but I know it’s coming in my near future.
The tack I’m planning to take is to create a full-sized frame at the bottom-most Z index which is transparent & “Active”. Then I can listen for InputChanged events on that to detect when the mouse moves.
If you are feeling adventurous, you can try that and report your results. Otherwise, you’ll be waiting a few weeks for me to try it and report my results.