Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player 2 controls image can't be localized for AZERTY keyboard #23

Open
akien-mga opened this issue Nov 1, 2018 · 0 comments
Open

Player 2 controls image can't be localized for AZERTY keyboard #23

akien-mga opened this issue Nov 1, 2018 · 0 comments

Comments

@akien-mga
Copy link

On AZERTY keyboard, Q and A are swapped (WASD -> ZQSD). SDL2 handles this nicely so the player 2 can be controlled with Q and D as expected.

The problem is that the main menu image showing the player 2 controls is, well, an image, so it can't take this mapping into account: https://github.com/cxong/FallingTime/blob/master/data/graphics/keyboard1.png

The fix would be to use sprites without the letter, and to put a label on top of them with the proper remapped key given by SDL2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant