- Home /
Get mouse direction in locked
I'm new to Unity, and I want to know how you would get the direction
the user's TRYING to move the mouse
when the mode is Locked
.
I believe I read something somewhere that had something to do with this, but could not find the source again.
After I know how to get the direction the user's trying to move the mouse, I plan on rotating the camera so the imaginary mouse (where the mouse WOULD be) would be centered.
Answer by HenryStrattonFW · Jan 24, 2017 at 08:36 PM
Input.GetAxisRaw() should do the trick, that should return mouse movement values even if it is set to Locked.
https://docs.unity3d.com/ScriptReference/Input.GetAxisRaw.html
Your answer
Follow this Question
Related Questions
Top down movement and rotation 2 Answers
How to select one prefab from more ? 0 Answers
Erratic movement problem 2 Answers
Runescape Movement and camera rotation 2 Answers
How can I produce the typical FPS mouse steering effect? 2 Answers