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?

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.