playMaker

Author Topic: Actions to get infos from joystick  (Read 2770 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Actions to get infos from joystick
« on: August 10, 2014, 02:17:00 AM »
should be nice to have things like:

connected player 1,2,3,4
disconnected Player 1,2,3,4

so we can setup different menus actions by mouse or joystick

and maybe others actions i don't have reflect about it...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Actions to get infos from joystick
« Reply #1 on: August 11, 2014, 09:42:02 AM »
Hi,

 Can you elaborate? do you mean you want to assign a device to a player n your game so that other player device assignment is left untouched as devices are plugged unplugged or selected?

 Bye,

 Jean

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Actions to get infos from joystick
« Reply #2 on: August 11, 2014, 05:47:40 PM »
well my idea is simple

when my joystick is connected or disconnected, unity auto detect it and send a message to log window.

i'm wondering how it's possible with playmaker.
also may be usefull to know Wich joystick number is on or off (for battery for exemple)


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Actions to get infos from joystick
« Reply #3 on: August 18, 2014, 04:39:51 AM »
Hi,

 Are you using the custom actions like GetNextJoystickName?

As for battery life, there is no such thing in Unity, the joystick is either detected or not.

 I would recommand you use InputControl, I made a abstract layer on top where you can assign a joystick to a player, regardless of it's index in the joystick list, which is much better than relying on the order of connections..

https://trello.com/c/c8YAecdL/60-incontrol

 Bye,

 Jean