- Home /
Question by
remeris · Apr 30, 2013 at 06:28 AM ·
cameracontrollergamepadxboxcontroller
Gamepad Camera + Interference from Mouse
Is there away to stop checking mouse+keyboard for input if a gamepad is detected? Basically, the right stick on the gamepad controls the camera, however my mouse is part of the gameworld, and the camera is also constantly shifting towards that as well. Is there a way to check something like, if(controller)--ignore mouse?
Comment
Answer by Graham-Dunnett · Apr 30, 2013 at 10:16 AM
You know how the mouse input is detected right? If not, then look in your code for a line that looks like Input.GetAxis
. This is the function that queries input axes, with, I'm guessing, the axes called Mouse X
and Mouse Y
. It's that bit of code you'd want to comment out, or put some if()
around it.