playMaker

Author Topic: Detect gamepad (new input system)  (Read 460 times)

nickg84

  • Playmaker Newbie
  • *
  • Posts: 7
Detect gamepad (new input system)
« on: September 02, 2023, 12:56:07 PM »
Is there a way for Playmaker to detect the controller input (kb+m, Playstation or Xbox gamepads) using the new input system? I just want to define specific icons based on what the player is using.

Ex: Mouse sprite if using a kb+m. X sprite if using a PS gamepad. A sprite if using Xbox.

Is that possible?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Detect gamepad (new input system)
« Reply #1 on: September 03, 2023, 06:30:24 AM »
Hi.
To support multiple controllers, I highly recommend to get the Rewired asset.
It has playmaker actions and supports many controllers.
It has a controller mapper (for player to change buttons/key)

I have been using it for years already (even before unity 'New Input System')

It has actions to detect if mouse/keyboard is used or joystick.
and when changed it can send a event to change the sprites

nickg84

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Detect gamepad (new input system)
« Reply #2 on: September 04, 2023, 08:48:35 AM »
Interesting, I'll check it out. Thanks!