Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
markfrancombe's avatar
markfrancombe
Honored Guest
9 years ago

xbox controller settings in Unity

I want to set the input settings for the xbox 1 controller. CAn someone point me to a HOW TO guide? I tried it with one of my games and the standard Unity First Person Controller with VR enabled...
I have added vertical and horizontal to make the left stick work, but this results in forward and backward movement, and left and right "strafing" but not turning. Is the correct approach to set turn to the right stick? How do I achieve this?

This is for a typical FPS type game movement.

Mark

2 Replies

Replies have been turned off for this discussion
  • Im surprised by no response here. Im sure its because of the EXTREME n00B-ness of the question.
    Now I know enough to start adding controller inputs in the Unity inputs component, but Id be guessing a bit as to values... and thats a lot of putting the head-set on and off.

    Also I suspect theres a vagueness to my question that makes it hard to answer, as in, what kind of game is it, and how do I WANT the controller to work.

    This is why I also hint at some general practice.. what works well in VR considering you operate the xbox controller blind, what bindings are good for a totally standard FPS kind of movement. forward backwards, turn etc.

    One thing I tried, that was merely selecting the VR checkbox in the player settings resulted in forward and backward movement using W and S... strafe was A and D.. but head looking would turn the player. This works with normal "monitor play" where head looking (using the mouse) is useful for turning, but in VR it seems to me that should be separate, or else we all have to play games on swivel chairs and get the cables twisted.

    Head Looking should be just that in VR, for looking around, whereas movement should be via your thumbs, that needs a rotation control added to... what?... the right stick?

    Experimentation my yield me results, but Im looking for EXPERIENCED advice here...

    Any help appreciated!

  • If you are just wondering what to put in the InputManager to bind actions to the button itself, check out the mapping on the Unify Wiki.

    If you are looking for more getting started advice, you should start with the Unity InputManager documentation and other tutorials. A quick google search for "Unity input manager tutorials" yielded several promising results.