static void Subscribe(InputSource eventSource, BtnState eventTypes, Action`3 onEvent)
You can subscribe to input events from Pointer sources here. StereoKit will call your callback and pass along a Pointer that matches the position of that pointer at the moment the event occurred. This can be more accurate than polling for input data, since polling happens specifically at frame start.
|InputSource eventSource||What input sources do we want to listen for. This is a bit flag.|
|BtnState eventTypes||What events do we want to listen for. This is a bit flag.|
|Action`3 onEvent||The callback to call when the event occurs!|
Found an issue with these docs, or have some additional questions? Create an Issue on Github!