Unity - Xbox Controller Support [ Purrpulsion ]

Опубликовано: 15 Июнь 2026
на канале: Brendan Dickinson
1,124
4

CONTROLLER SUPPORT!! Welcome back everybody, today I'll be talking about the 4-player Xbox 360 controller support that I added to my game Purrpulsion.

First off I had to add all the button inputs into Unity's built in Input Manager, which took a bit of time. I also had the add a different input for each button on each controller. Next I had to access that input through code and decide what to do depending on the phase of the game and the properties of the player at that time.

The controllers are initially used for reflex based input where they're fueling their ships. Then you liftoff and can fly around the screen avoiding bombs and gathering fuel/powerups. I decided to use velocity for the player movement based off of the joystick on the controller.

If you have any questions leave them down below and I'll get back to you. I think controller support is great for this game because it feels more natural.

For more information on my games and what I've done check out my portfolio website:

http://brendandev.com/

You can also check out my facebook page and twitter for information on my videos and game development work:

https://www.facebook.com/pages/Frosty...
  / brendangamer