Input.FireEvent

static void FireEvent(InputSource eventSource, BtnState eventTypes, Pointer pointer)

This function allows you to artifically insert an input event, simulating any device source and event type you want.

   
InputSource eventSource The event source to simulate, this is a bit flag.
BtnState eventTypes The event type to simulate, this is a bit flag.
Pointer pointer The pointer data to pass along with this simulated input event.




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