j0kai / Apostle

The Apostle Engine is an in-development 2D/3D game engine. The aim for the Apostle Engine to is to be a lightweight, multi-platform tool that can be used by solo developers or small teams as an alternative to massive applications like Unreal and Unity.
Apache License 2.0
1 stars 0 forks source link

Some keys are being printed incorrectly to the console #3

Open j0kai opened 1 year ago

j0kai commented 1 year ago

Some key presses are showing up as the "wrong" keys when printing to the console; generally 'modifier' keys. I believe some of the keys may be different due to the varying keyboard layouts depending on where you're from. I originally was going to go with an English (UK) layout, but on second thought it might just be better to do with a US keycode system.

Replicate by running the application and hitting keys while the window is in focus. Key presses are printed to the console by default.

POTENTIAL FIX:

As this is a matter of keyboard layouts being different depending on where you're from, you could just fix the keys that are showing emojis and/or totally unrelated symbols, but I think I would prefer to keep a US-style keycode layout despite being from the UK.