- Home /
Cinemachine freelook cam Crossplatform Input Movement
I'm Using cinemachine freelook cam in my game and until now, i was using my mouse and keyboard for rotating cam and moving player.
But i am making this for mobile, so i set up on screen joysticks for movement, left for move and right for cam. I will use Unity Standard assets crossplatform Input.
Movement scripts are done by me (Brackeys third person movement video), so i can modify them as
Input.GetRawAxis("Horizontal");
to
CrossPlatformInputManager.GetRawAxis("Horizontal");
And map my movement joystick to Horizontal and Vertical Axis.
But the problem is with Camera. Cinemachine uses
Input.GetAxis("Mouse X");
For reading mouse input, but i need to read it the onscreen joystick input which i have mapped to Cam X/Y
If i set Axis name in cinemachine as Mouse X/Y, but it will use Unity Native Input.
But it should
CrossPlatformInputManager.GetAxis("Cam X");
How will I do that
Your answer
![](https://koobas.hobune.stream/wayback/20220613013813im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
How to rotate player based off my current code 0 Answers
Multiple Cars not working 1 Answer
How to create scaled space? 0 Answers