Closed Pesegato closed 5 years ago
Discovered that com.jme3.input.JoystickButton ranges from 0 to 11, and lemur.input.Button ranges from “joystick_1” to “joystick_12”. It might be by purpouse...
I don't remember for sure if this was discussed on the forum or not but the 1-12 thing was deliberate to match things like mouse buttons. I don't have a really strong opinion about it, though... but changing it would break any app that has mapped to specific buttons.
Maybe if there is strong motivation to fix it then it can wait until Lemur has a built in input remapping UI so that apps no longer have an excuse for hard coding these mappings.
Well, accepting this PR won't fix the fundamental problems, so feel free to discard it.
My joypad return 0 from the "A" button getButtonID... it feels natural to build each button with "joystck_"+getButtonID()