Using controller input

One of the biggest advantages of using Unity as a game engine is the fact that you can support multiple platforms with minimal changes to your base game. In fact, right now, if you plug in an Xbox 360 Controller into your computer, restart Unity, and then try to play the game, you'll notice that the left-hand side joystick already moves the player, and if you press the Y button, you will jump into the air. However, some of the aspects don't work, so let's get them implemented.

Let's get started by performing the following steps:

  1. The first thing that we're going to need to do is let Unity know that we want to work with some new input. So, to do that, we will need to navigate to Edit | Project Settings | Input. Have a look at ...

Get Unity Game Development Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.