A bit of background: gamepad support is currently plagued by a few issues, expecially with LWJGL3, which are unlikely to get solved in the short term.
So I’ve made a few experiments with GLFW: Input guide and bypassed InputManager and InputMapper. Early results looks promising. Now I’d like to have InputMapper to handle the events to the application, like:
//I've detected a gamepad input and must forward it to the listener inputMapper.listeners.notifyStateChanged(...)
Problem is, listeners is private so I can’t just do that. Possible solutions:
- fork Lemur and provide a getter for listeners (bad)
- buid another layer on top of InputMapper and GLFW that wraps everything (not good either: yet another hardware abstraction layer)
- somehow register and drive the input to the InputMapper (how?)
Any suggestion is welcome, thanks!