⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Input.KeyInjectPress

static void KeyInjectPress(Key key)

This will inject a key press event into StereoKit’s input event queue. It will be processed at the start of the next frame, and will be indistinguishable from a physical key press. Remember to release your key as well!

This will not submit text to StereoKit’s text queue, so to type a character into something like UI.Input, you must submit a TextInject call. Editing keys are the other way around: backspace, delete, enter, and escape act on UI.Input through this call.

   
Key key The key to press.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!