playMaker

Author Topic: Xbox 360 controller D Pad setup?  (Read 3685 times)

Adam Z

  • Full Member
  • ***
  • Posts: 207
Xbox 360 controller D Pad setup?
« on: September 14, 2016, 08:47:43 PM »
I want to use 'Get key Down', but what do I assign it in the 'Key' dropdown to use the D-Pad (7th Axis)?  Thanks.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Xbox 360 controller D Pad setup?
« Reply #1 on: September 15, 2016, 04:56:37 AM »
Hi,
I think you need to add it in the input manager

edit/project settings/input

for up/down
make size 1 bigger and edit the added input, change the name (for example DpadV)
Set type to joystick axis and on axis select 7th axis.

for left / right add another input but use 6th axis.

Then instead of using Get Key Down you need to use Axis Event
Place the name you made in vertical (DpadV)
and also for horizontal if you have (else make it empty)
and set up the events

4ppleseed

  • Full Member
  • ***
  • Posts: 226
Re: Xbox 360 controller D Pad setup?
« Reply #2 on: September 15, 2016, 11:01:34 AM »
I want to use 'Get key Down', but what do I assign it in the 'Key' dropdown to use the D-Pad (7th Axis)?  Thanks.

http://wiki.unity3d.com/index.php?title=Xbox360Controller

On PC you need to use Get Axis.