🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to handle azerty keyboards? (and others)

Started by
1 comment, last by wintertime 3 years, 2 months ago

I'm making my game with a qwerty keyboard and the controls are designed around the WASD scheme.

How do games handle different kinds keyboards? Should my game detect the kind of keyboard the user has and change the input layout accordingly?

Advertisement

For the WASD scheme and similar, you should not check the keys using the letters on them to compare against, but the underlying key on that position (likely through checking scancodes). Thats much better than detecting which letter on which of hundreds of keyboard layouts the key got you need.

PS: Make it configurable, so people have a way out if your program doesn't work for them or their keyboard.

This topic is closed to new replies.

Advertisement