mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
COMMON: Expand a bit the KeyState documentation
This follows a bug that was found in the Lure engine where keycode was used in a place where it should have used ascii.
This commit is contained in:
parent
c19df60092
commit
50136f43c7
@ -248,7 +248,10 @@ struct KeyState {
|
||||
* ASCII-value of the pressed key (if any).
|
||||
* This depends on modifiers, i.e. pressing the 'A' key results in
|
||||
* different values here depending on the status of shift, alt and
|
||||
* caps lock.
|
||||
* caps lock. This should be used rather than keycode for text input
|
||||
* to avoid keyboard layout issues. For example you cannot assume that
|
||||
* KEYCODE_0 without a modifier will be '0' (on AZERTY keyboards it is
|
||||
* not).
|
||||
*/
|
||||
uint16 ascii;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user