MrStahlfelge / lightblocks

Falling Lightblocks. Falling block game for Android (Mobile and TV), iOS, Web browsers. Works on desktops, too.
https://www.golfgl.de/lightblocks/
Other
140 stars 15 forks source link

Hardware keyboard mapping not active when a controller is connected #13

Closed MrStahlfelge closed 4 years ago

MrStahlfelge commented 4 years ago

Mapping of a hardware keyboard is only processed if no controller is connected.

https://github.com/MrStahlfelge/lightblocks/blob/f178e397a2f5269b7f50ee73059c8333895953ba/core/src/de/golfgl/lightblocks/screen/PlayKeyboardInput.java#L164

Some users already reported that mappings are not working for them. That's probably the cause.

MrStahlfelge commented 4 years ago

Can be fixed by different multiplexer for controllers and keyboard input in PlayScreen.show(). PlayKeyboardInput should return an own listener for mapped controller input.