⚠ Cookies ⚠

By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.

Projects

AGS EngineKeyboardDetect keyboard type
RadiantNumerous 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.
© Adventure Game Studio 2024. Page design by loominous and Darth Mandarb; coding by AGA.
Page generated on 06 May 2024 at 12:04:11