Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Aaddiction on November 08, 2016, 04:33:07 AM

Title: Change Input Action.
Post by: Aaddiction on November 08, 2016, 04:33:07 AM
In Options menu, under Control tab of the game, the player should be able to change key bindings. Is there a way to make this with PM? May be it's me, but I can't find a way to change the designated key for certain input.

Is there an action that detects the key that is pressed and to store it in a variable?
Not "any key" or predefined key, but the specific key that the player has pressed.
Title: Re: Change Input Action.
Post by: terri on November 08, 2016, 07:02:42 AM
This is one of the huge missing Unity features. I think they have some new experimental input system in development but until that you'll probably need an asset. I've used cInput for this in the past and it worked pretty well.
Title: Re: Change Input Action.
Post by: djaydino on November 08, 2016, 07:40:04 AM
Hi,
You can find an action on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) called 'any key store string'
Title: Re: Change Input Action.
Post by: terri on November 09, 2016, 06:31:57 AM
Hi,
You can find an action on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) called 'any key store string'

this can be a workaround in some cases but I really disagree on it being a solution
Title: Re: Change Input Action.
Post by: djaydino on November 09, 2016, 04:54:27 PM
Hi,
But it can work :

Title: Re: Change Input Action.
Post by: terri on November 12, 2016, 02:48:56 PM
it is cool, but you couldn't use to have a custom axis input, for example, right?
Title: Re: Change Input Action.
Post by: djaydino on November 12, 2016, 05:28:30 PM
Hi,
If you have several preset Axis-es in you input then it is possible

So if you would want to switch the left one to the right it would be possible
Title: Re: Change Input Action.
Post by: terri on November 14, 2016, 04:11:25 AM
I see what you mean, thanks.
This is great, and hopefully this: https://blogs.unity3d.com/2016/04/12/developing-the-new-input-system-together-with-you/ will be a thing soon.
Title: Re: Change Input Action.
Post by: djaydino on November 14, 2016, 07:11:37 AM
Hi,
Yes that would be nice indeed