playMaker

Author Topic: Quick Question on Xbox Controller Trigger Buttons  (Read 2015 times)

SammyJoeUK

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Quick Question on Xbox Controller Trigger Buttons
« on: June 09, 2015, 10:50:47 AM »
How?! Just how?!

I understand that the trigger buttons on xbox controllers aren't like traditional  buttons and they work on an axis instead but I'd like the Right Trigger (RT) to be used to make a character run - how do I do this? Are the triggers on one of the key up events (Joystick Button 1 - 19) or are they done differently?

Thanks

sj


terri

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
    • terrivellmann.tumblr.com
Re: Quick Question on Xbox Controller Trigger Buttons
« Reply #1 on: June 09, 2015, 01:03:18 PM »
Yeah it's axis, you can check the magnitude and if it's over a certain number you make the character run.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Quick Question on Xbox Controller Trigger Buttons
« Reply #2 on: June 09, 2015, 01:24:57 PM »


It's a pressure sensitive button and therefore an axis (can be something other than 0 or 1).

SammyJoeUK

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Re: Quick Question on Xbox Controller Trigger Buttons
« Reply #3 on: June 09, 2015, 01:49:26 PM »
What're the actions I should use in order to get this working?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Quick Question on Xbox Controller Trigger Buttons
« Reply #4 on: June 09, 2015, 02:07:52 PM »
Which input controller asset are you using?

Chris Vitorino

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Quick Question on Xbox Controller Trigger Buttons
« Reply #5 on: August 20, 2015, 09:16:35 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