Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: bbangerter on November 25, 2017, 02:50:30 PM

Title: GetKeyDown/Up actions, and setting keycode through script [SOLVED]
Post by: bbangerter on November 25, 2017, 02:50:30 PM
I've searched, but it appears you cannot set the keycode for a GeyKeyDown or GetKeyUp action through script. Did I miss something? Is there a workaround for this?

I'm currently not using Unity's input manager system as I haven't found a way to update those settings at run time through my own custom menu system...
Title: Re: GetKeyDown/Up actions, and setting keycode through script
Post by: djaydino on November 25, 2017, 05:36:10 PM
Hi,
There are some custom actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) that could help you out.
Search for : keycode
Title: Re: GetKeyDown/Up actions, and setting keycode through script
Post by: bbangerter on November 26, 2017, 12:13:12 AM
Thanks, Get Key Down/Up from String was what I needed.

I did end up having to have a temporary state to transition to then back to my listener if my key mapping was changed before play maker recognized the new key, but that was a minor detail.