- Home /
Does anyone know how to determine whether or not a mouse is connected?
I'm using Unity 2020 and the new Input System (note: I'm also developing and observing this issue on a desktop Windows PC).
I'm checking Mouse.current as per the documentation - however, this seems to think a mouse is present even when it isn't. (i.e. I disconnect my mouse, run the Editor, and in a Start method check for Mouse.current == null, but this is returning false.)
Alternatively is anyone using a different method to determine whether or not a mouse is present? I'm trying to cater my control system for players using a Laptop and no mouse.
Cheers!
Comment