diff options
author | Thierry Crozat | 2012-07-01 01:03:49 +0100 |
---|---|---|
committer | Thierry Crozat | 2012-07-01 01:03:49 +0100 |
commit | 50136f43c7de4889444d9de19ff5d99f2cc04bf7 (patch) | |
tree | 3cd7c62f934925161275f83c5d3f318386478dc7 /common | |
parent | c19df60092bac7fde7e492dbf9b5002a17f935c8 (diff) | |
download | scummvm-rg350-50136f43c7de4889444d9de19ff5d99f2cc04bf7.tar.gz scummvm-rg350-50136f43c7de4889444d9de19ff5d99f2cc04bf7.tar.bz2 scummvm-rg350-50136f43c7de4889444d9de19ff5d99f2cc04bf7.zip |
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.
Diffstat (limited to 'common')
-rw-r--r-- | common/keyboard.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/keyboard.h b/common/keyboard.h index e6db086598..f9e94e6656 100644 --- a/common/keyboard.h +++ b/common/keyboard.h @@ -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; |