The idea is to create an Input Provider instead of handling events inside the InventoryInputHandler.
Creating an provider will encapsulate the input logic inside a class and we can have middlewares for changing this input.
Implementation ideas
Create an InputProvider that holds the actions for when the mouse stop holding, on click.... also the mouse position and other.
The idea is to remove the dependency from the class OnInputTriggerEventChannelSo, or maybe remove it completely. Instead of dependeding from an event, you depend on the InputProvider.
Description
The idea is to create an Input Provider instead of handling events inside the InventoryInputHandler.
Creating an provider will encapsulate the input logic inside a class and we can have middlewares for changing this input.
Implementation ideas
Create an InputProvider that holds the actions for when the mouse stop holding, on click.... also the mouse position and other.
The idea is to remove the dependency from the class OnInputTriggerEventChannelSo, or maybe remove it completely. Instead of dependeding from an event, you depend on the InputProvider.
This could help us to develop a better input: https://www.youtube.com/watch?v=pOEyYwKtHJo&ab_channel=aarthificial