Unreal.js icon indicating copy to clipboard operation
Unreal.js copied to clipboard

IsInputKeyDown()

Open srfoster opened this issue 3 years ago • 0 comments

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.

srfoster avatar Dec 16 '20 22:12 srfoster