Unreal.js
Unreal.js copied to clipboard
IsInputKeyDown()
Suppose I want to detect when the "P" key is pressed. And suppose I have a player controller pc. With what do I call IsInputKeyDown()? E.g.:
pc.IsInputKeyDown(key)
Supposedly this needs to be an FKey struct. But I'm unclear about how to construct one of those in Unreal.js.