playMaker

Author Topic: Setting up a Dual Stick controller (360/PS3).  (Read 4193 times)

MickeyMe

  • Playmaker Newbie
  • *
  • Posts: 3
Setting up a Dual Stick controller (360/PS3).
« on: June 27, 2014, 10:42:40 PM »
Hey. I can't see anything in the Actions list or in the various tutorials about mapping dual stick game controllers (PS3/360 etc.).

The movement controller automatically gets mapped to the left stick, but I want to use the right stick to tell the player where to look (Geometry Wars style).

If anyone can shove me in the right direction I'll be super grateful. :-)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4003
  • Official Playmaker Support
    • LinkedIn
Re: Setting up a Dual Stick controller (360/PS3).
« Reply #1 on: June 28, 2014, 01:40:09 AM »
You have to setup the Unity Input Manager to map the extra axis.

This doesn't seem to be terribly well documented, but here's an example:
http://wiki.etc.cmu.edu/unity3d/index.php/Joystick/Controller

There are also third party solutions like this one:
https://www.assetstore.unity3d.com/en/#!/content/14695

Maybe people with more experience trying these different approaches could offer some thoughts. I also remember seeing other posts about this on the forums...

LogLady

  • Full Member
  • ***
  • Posts: 150
Re: Setting up a Dual Stick controller (360/PS3).
« Reply #2 on: June 29, 2014, 07:33:01 PM »
How could it be used to allow a custom input controller?

ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Re: Setting up a Dual Stick controller (360/PS3).
« Reply #3 on: July 05, 2014, 03:06:44 AM »
I my self do this with Cinput.
Its easy t setup and well documented.
You can find some actions in the forums here or make your own( change input. to cinput.)

LogLady

  • Full Member
  • ***
  • Posts: 150
Re: Setting up a Dual Stick controller (360/PS3).
« Reply #4 on: July 07, 2014, 10:08:38 AM »
Thanks for the tip, Ghost010!

redikann

  • Full Member
  • ***
  • Posts: 174
Re: Setting up a Dual Stick controller (360/PS3).
« Reply #5 on: July 07, 2014, 06:01:16 PM »
This is pretty easy after you've done it more than once. The biggest thing is making sure you know what axis to set up. For 360 the right stick is 4th(horizontal)and 5th(vertical). When I am using playmaker actions I like to copy mouse X and Y (ctrl+d) in the Input Manager and then change the input to joystick and axis. This way I can use Mouse look actions with little fuss.
After that you can use a Get Axis Vector and feed that vector 3 into a Smooth look at direction and this will rotate your character to face the axis direction.
« Last Edit: July 07, 2014, 06:05:53 PM by redikann »