JoyStick Setup?

Steve 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 7


I'm looking to do a get button down event for a xbox controller whose input is managed by the plugin Rewired https://www.assetstore.unity3d.com/en/#!/content/21676. I can't seem to get the get button down to work. Any ideas?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

You should  be able to use that  assets scripts and mono behavior items and turn them into nodes/units and could use their very own method. Take a look in the docs advanced section. http://support.ludiq.io/topics/223-custom-types/

I do not have Rewired but if Lazlo does not have any suggestions or you figure it out I will take a closer look after work and see if I can help further. 

Pending Review

Hm, IIRC, Rewired requires a "Player" object (that you retrieve from ReInput.GetPlayer, off the top of my head) to work and doesn't operate directly on the component.

Are you sure you get a "Self" option on that "Get Button" node?

I'm not on my workstation right now but I'll install Rewired and test once I get a chance.

Hi All,

Thanks for the feedback! I'll look into both solutions for sure. I'm not sure about the self option on the get button node. But, I'll first try William's suggestion.




As Lazlo says, you need a player.

heres an example

//In a script somewhere
public Player activePlayer;
//In Start() or some Method
activePlayer = ReInput.players.GetPlayer(playerNameOrNumberFromRewiredSettings);

Thanks, that's a good workaround. 

If you wanted to use players and GetPlayer as units too, you would have to add ReInput and I believe (off the top of my head) PlayerCollection to your type options, after having added Rewired to your assembly options.

This works but it's too cumbersome in my opinion. I love and use Rewired in almost every project, which is why I posted an idea about a deeper Rewired integration: http://support.ludiq.io/topics/210-rewired-integration/

Cool, I'll try this out for sure, thanks for the feedback. :)