In writing games that deal with scancodes, what do I need to know to support international keyboards

Posted by sludge on Stack Overflow See other posts from Stack Overflow or by sludge
Published on 2009-12-21T01:03:08Z Indexed on 2010/04/06 11:13 UTC
Read the original article Hit count: 300

I am writing an input system for a game that needs to be able to handle keyboard schemes that are not just qwerty. In designing the system, I must take into consideration:

  • Two types of input: standard shooter controls (lots of buttons being pressed and raw samples collected) and flight sim controls (the button's label is what the user presses to toggle something)
  • Alternative software keyboard layouts (dvorak, azerty, etc) as supplied by the OS
  • Alternative hardware keyboard layouts that supply Unicode characters

My initial inclination is to sample the USB HID unicode scancodes. Interested on thoughts on what I need to do to be compatible with the world's input devices and recommendation of input APIs on both platforms.

© Stack Overflow or respective owner

Related posts about game-development

Related posts about Keyboards