playMaker

Author Topic: PS4 controller mapping  (Read 1915 times)

visitor1980

  • Playmaker Newbie
  • *
  • Posts: 39
PS4 controller mapping
« on: September 27, 2020, 04:55:59 PM »
PS4 controller mapping from Unity to PlayMaker?
Any idea how to mapped ps4 controller via PlayMaker, because input manager doesn't work for me. It won't take any input mrom my ps4 controller.

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: PS4 controller mapping
« Reply #1 on: September 27, 2020, 06:44:05 PM »
pm me, I might be able to help with this.

I am working on a prototype called playmaker control.

https://hutonggames.com/playmakerforum/index.php?topic=22729.0

I currently have a PlayStation 3 controller setup as well as an Xbox.

With some cooperation from you, I may be able to get it setup as well.

I was actually thinking of adding a Nintendo switch to my current setup.

But please remember this is still only prototype stages of my development.



Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: PS4 controller mapping
« Reply #2 on: September 27, 2020, 06:58:50 PM »
Use the new input system. For the setup, see here.


Then use these actions to interact with it:
https://hutonggames.com/playmakerforum/index.php?topic=21797.msg95729#msg95729

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: PS4 controller mapping
« Reply #3 on: September 28, 2020, 09:05:06 AM »
Use the new input system. For the setup, see here.


Then use these actions to interact with it:
https://hutonggames.com/playmakerforum/index.php?topic=21797.msg95729#msg95729

This looks very promising, is there a playmaker example scene?

visitor1980

  • Playmaker Newbie
  • *
  • Posts: 39
Re: PS4 controller mapping
« Reply #4 on: September 28, 2020, 09:44:29 AM »
Hi, thanks for the help. I bind the buttons, but can't bind left stick. Any idea how to?

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: PS4 controller mapping
« Reply #5 on: September 28, 2020, 10:51:57 AM »
In general:

(1) set up a binding composite vector2 in the input asset.
(2) click on path > listen and fetch Left Stick / Up [Gamepad], with composite part > up.
(3) repeat step 2 for all directions.

There is also Left Stick PS4 in particular, but I use the more general Gamepad with my PS4 controller and that works great (though I don't use PlayMaker for this, but script).

Then, the actions should have one to get a composite vector2. The beauty of this new system is that the "code" side doesn't care what exactly triggers the input action, or where the vector2 comes from.

visitor1980

  • Playmaker Newbie
  • *
  • Posts: 39
Re: PS4 controller mapping
« Reply #6 on: September 28, 2020, 11:19:25 AM »
All ready done. How to implement in playemaker movement, for example chatacter move?