playMaker

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

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Can you detect gamepad in PM?
« on: August 06, 2015, 12:00:02 AM »
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: 126
    • Tumblr
Re: Can you detect gamepad in PM?
« Reply #1 on: August 06, 2015, 12:02:03 AM »
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: 555
    • Can't code? Who cares! Make games anyway!
Re: Can you detect gamepad in PM?
« Reply #2 on: August 06, 2015, 09: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: 126
    • Tumblr
Re: Can you detect gamepad in PM?
« Reply #3 on: August 06, 2015, 04:34:17 PM »
Cool- thanks for the reply.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Can you detect gamepad in PM?
« Reply #4 on: August 06, 2015, 05: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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Re: Can you detect gamepad in PM?
« Reply #5 on: August 07, 2015, 12:13:21 AM »
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
    • In Your Legends
Re: Can you detect gamepad in PM?
« Reply #6 on: August 07, 2015, 06: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, 06:48:40 AM by inyourbus »
One step at a time..