Inputs Existing Game EN - Drova-Modding/Drova-Modding-API GitHub Wiki

You can as an example use this in your Core File, here you need to make sure, that the action is not null or you create a Mock Action before its assigned to the correct one. You can't bind currently to the performed events and so on, as they are ValueTypes and not supported in delegates..

If you use this in a injected MonoBehaviour you will not need the check for the null, as it will be first run, after your action is assigned.

   public override void OnUpdate()
   {
       base.OnUpdate();
       if (testAction != null && testAction.IsPressed())
       {
           LoggerInstance.Msg("TwitchStart pressed");
       }
    }