Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
TheOrangeCappie's avatar
TheOrangeCappie
Honored Guest
6 months ago

Mouse as Input device boundaries

Hello,

I am currently working on a Unity application for the Meta Quest 3. The application uses the New Input System. The user input device is a Bluetooth mouse.

I noticed that the cursor of the mouse seems to be bounded, as in it reaches the edge of an invisible window. However, I want the mouse movement input to be unbounded, so that I continuously get a correct mouse movement if I keep moving the mouse to the e.g. right indefinitely.

I tried several methods I found online that did not work for me:

  • Setting the cursor lockState to CursorLockMode.Locked caused the application to strongly lag upon using the mouse.
  • Resetting the mouse position using Mouse.current.WarpCursorPosition() after obtaining the movement data did not change the behavior.

I use Unity 6.0 (6000.0.53f1). Did anyone else have a similar issue?

1 Reply

Replies have been turned off for this discussion
  • I looked at it with the profiler and noticed the following, there are a lot of IMGUI get direction and InputSystem Callbacks. I played around with it but can't get it to work.