playMaker

Author Topic: how can use 360 controller trigger buttons?  (Read 1193 times)

strange_aeons

  • Playmaker Newbie
  • *
  • Posts: 43
    • View Profile
how can use 360 controller trigger buttons?
« on: August 16, 2015, 08:51:02 PM »
can anyone help me work this out?, i want to setup so that when i press 360 controller triggers they do things like make the character sprint or crawl. i understand that they work differently to the other buttons, because they are axis, so how could i achieve these results and what actions would do that?

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: how can use 360 controller trigger buttons?
« Reply #1 on: August 17, 2015, 02:25:57 AM »
You can define INPUT from the Unity settings Menu.

Then in Playmaker, if you use Get Key Down etc and there's a huge drop down list, right at the bottom are all the controller buttons, the numbers match up to the list here:

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

and for the Axis use Playmaker's Get Axis (make sure it's defined in the settings menu in Unity first) and use the vector information to control your player.

strange_aeons

  • Playmaker Newbie
  • *
  • Posts: 43
    • View Profile
Re: how can use 360 controller trigger buttons?
« Reply #2 on: August 17, 2015, 05:43:07 AM »
on the link you give, the triggers are listed as axis and i dont see any axis appear in the huge drop down list you get with the Get Key Down action. unless if all those joystick button 0-19s are both buttons and axis.

shouldn't it be Get Axis Vector to use the 360 triggers?

Chris Vitorino

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: how can use 360 controller trigger buttons?
« Reply #3 on: August 20, 2015, 09:14:52 PM »
I had the exact same problem. I've found a solution for it, posted it here: http://hutonggames.com/playmakerforum/index.php?topic=10997.0