MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / KeyInjectPress

Method KeyInjectPress

StereoKit/Systems/Input.cs:526–526  ·  view source on GitHub ↗

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, and will not show up in places like UI.Input. For that, you must submit a TextInjectChar call. <param name

(Key key)

Source from the content-addressed store, hash-verified

524 /// TextInjectChar call.</summary>
525 /// <param name="key">The key to press.</param>
526 public static void KeyInjectPress(Key key) => NativeAPI.input_key_inject_press(key);
527 /// <summary>This will inject a key release event into StereoKit's
528 /// input event queue. It will be processed at the start of the next
529 /// frame, and will be indistinguishable from a physical key release.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected