- Home /
Controlling orbiting camera with mouse AND controller?
Hello, I am working on a game that you can control with a mouse and keyboard and a controller. So far I'm able to use wasd to move the character and hit spacebar to jump. Alternatively I am able to pick up my controller and move the character with the left stick and jump with the face button assigned in the same instance without changing any settings. Perfect! But, I'm not able to use the mouse AND the right stick to move the camera. The only way I could figure how to do this was to make a bool and check a box switching form one input to the other. Here is the script I'm working with:
Now I'm a noob and got this script from a YT tutorial and am not versed in C# enough to know if this is even the best way to get the camera to orbit, but, is there a way to allow BOTH the mouse and the right stick on the controller to control the camera at the same time?
Your answer
![](https://koobas.hobune.stream/wayback/20220612164406im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Making a torque-based sphere controller by simple mouse inputs 2 Answers
Bullet mouse control 2 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to rotate camera diagonally over players shoulder while still facing towards players direction 0 Answers
Can't figure out how to get a crosshair to adjust size with mouse movement. 1 Answer