playMaker

Author Topic: Can you detect gamepad in PM?  (Read 2527 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Can you detect gamepad in PM?
« on: August 05, 2015, 09:00:02 PM »
How could you detect a controller so you could give specific instructions for input if they're using keyboard or controller?

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Can you detect gamepad in PM?
« Reply #1 on: August 05, 2015, 09:02:03 PM »
My idea would be to use a get button down in an fsm and if it's true they're using gamepad. But is there a more specific way?

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Can you detect gamepad in PM?
« Reply #2 on: August 06, 2015, 06:14:23 AM »
Theres a "get joystick name" action on Ecosystem- it has a "found event" option- you could use that to do something when I joystick is attached
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Can you detect gamepad in PM?
« Reply #3 on: August 06, 2015, 01:34:17 PM »
Cool- thanks for the reply.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Can you detect gamepad in PM?
« Reply #4 on: August 06, 2015, 02:07:54 PM »
Unity's built in Input system has some shortcomings. Most devs that are targeting gamepads will use something like InControl or ReWired to handle their gamepad controls and inputs.

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Can you detect gamepad in PM?
« Reply #5 on: August 06, 2015, 09:13:21 PM »
Ok, thanks Lane. I bought cInput Pro a while ago. I forgot about it. I think i'll see if there's something on there. ReWired looks good though.

inyourbus

  • Playmaker Newbie
  • *
  • Posts: 43
  • In Your Legends
    • View Profile
    • In Your Legends
Re: Can you detect gamepad in PM?
« Reply #6 on: August 07, 2015, 03:41:17 AM »
I have not used inControl but I would highly recommend Rewired.


The developer is active on this forum and there are already some actions that bring almost all functionality through PlayMaker.


http://hutonggames.com/playmakerforum/index.php?topic=9134.msg51558#msg51558


I have been successful in bringing Local and Online multiplayer with UI controls using Rewired.


Great documentation and you can also try before you buy.
http://forum.unity3d.com/threads/rewired-advanced-input-for-unity.270693/





« Last Edit: August 07, 2015, 03:48:40 AM by inyourbus »
One step at a time..