Projects
AGS Engine | Keyboard | Detect keyboard type |
---|---|---|
Radiant | Numerous non-adventure games in AGS (or non-adventure minigames within an adventure) use keyboard controls. These commonly use Q/W/E/A/D/Z/X/C for directions, or Z/X for fire/jump keys. However, this only works on a standard English keyboard with QWERTY layout; French keyboards use AZERTY whereas German keyboards use QWERTZ. I'm sure there are other examples. It would be nice to have an option to detect what kind of keyboard layout is in use; I'm sure Windows has an API call for that. An alternative approach would be to allow IsKeyPressed() (or a variant function) to detect physical keys instead of key scancodes. |