Consider using ClientTickEvent.Post instead of InputEvent for handling client input
EchoEllet opened this issue ยท 0 comments
Description
The NeoForge site recommends using ClientTickEvent.Post for handling input instead of InputEvents. It also suggests not to depend on any InputEvent for this use case.
Currently, the mod depends on InputEvents, which are NeoForge/Forge specific, work only with vanilla mouse and keyboard, and do not work with modded environments or other inputs such as controllers.
Tip
This is also suggested by the legacy Forge and the standard method in Fabric envrionment.
Another alternative would be to run the input handling directly at the HEAD of the vanilla Minecraft#handleKeyMappints.
Not a feature request
- I understand this is not a content/feature request, which can be found on discord