Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on August 06, 2015, 12:00:02 AM

Title: Can you detect gamepad in PM?
Post by: Gav (HeyBud) 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?
Title: Re: Can you detect gamepad in PM?
Post by: Gav (HeyBud) 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?
Title: Re: Can you detect gamepad in PM?
Post by: mdotstrange 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
Title: Re: Can you detect gamepad in PM?
Post by: Gav (HeyBud) on August 06, 2015, 04:34:17 PM
Cool- thanks for the reply.
Title: Re: Can you detect gamepad in PM?
Post by: Lane 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.
Title: Re: Can you detect gamepad in PM?
Post by: Gav (HeyBud) 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.
Title: Re: Can you detect gamepad in PM?
Post by: inyourbus 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 (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/ (http://forum.unity3d.com/threads/rewired-advanced-input-for-unity.270693/)