I'm am trying to subscribe a function to a input action asset or detect a boolean value so I can trigger functionality. How does one go about reading input, in my case, of quest 2 controller, using ECS. I looked some videos from TMG and still unsure how things work.
From my understanding an InputActionReference is a managed value so it seems the only way is to add that componentdata class value to an entity and somehow . Add the referece to the authoring script and sub subscribe in the OnStartRunning on the ISystem. Or is it only possible in the SystemBase?
If I can get some insight, let me know if the above way is "correct" and am I suppose to only use ISystem or SystemBase as how I understand it, SystemBase is used when there are managed values involved so it seeems to be the use case here but I only need to read data and not write so I wonder if I can get away with using ISystem, as I try to use I System instead of systembase as much as I can but maybe that is the wrong mentality.
Appreciate any confirmation or insight, or links to any good samples or resources for interacting with the new input system with ECS. And I apologize in advance if my question is unclear or too trivial in advance.