InputDeviceManager.deviceUsesCursor override?
Posted: Wed Jul 17, 2019 5:18 pm
Hi,
Working on a project where I want the mouse cursor to always be rendered as a UI sprite (using my own scripts) and never have the system cursor showing, but it seems that InputDeviceManager insists on the system cursor when mouse input is detected.
The static property deviceUsesCursor is true if it detects mouse input. Is there a way to override this, apart from making changes to the InputDeviceManager class itself, which will be overwritten if I update DS at some point?
Not a huge problem, but I try to avoid changes to the framework.
[Edit] Just realised this also affects CursorLockMode - so the question is really: what's the best way to never show the system cursor, but still have normal mouse input?
Cheers,
Snebjørn
Working on a project where I want the mouse cursor to always be rendered as a UI sprite (using my own scripts) and never have the system cursor showing, but it seems that InputDeviceManager insists on the system cursor when mouse input is detected.
The static property deviceUsesCursor is true if it detects mouse input. Is there a way to override this, apart from making changes to the InputDeviceManager class itself, which will be overwritten if I update DS at some point?
Not a huge problem, but I try to avoid changes to the framework.
[Edit] Just realised this also affects CursorLockMode - so the question is really: what's the best way to never show the system cursor, but still have normal mouse input?
Cheers,
Snebjørn