Open sebllll opened 4 years ago
We propagate the current IInputSource
through the IRenderer
(and Entity
) connections. Therefor this request should be implemented by a node placed in-between such a connection taking a custom input source. That custom input source could be implemented by the classes mentioned in the above PR.
Create nodes than can insert InputEvents into the Inputmanager(s). Generated Inputevents from the patch can be quite handy when one wants to insert exotic devices (e.g. tuio) into the system or for testing of applications (e.g. create a looooot of funky inputevents to see if your app can handle this)
In the zip is what i used to insert Pointers via Tuio in VL.Xenko. The dll isn't needed anymore (was merged into Stride in the meantime https://github.com/stride3d/stride/pull/622) the c# source is also in the zip for convenience.
the method can be generalized for all sorts of inputsources - i just needed pointers at that time.
Pointers.zip