|
From: alvin (<alv...@ho...> - 2017-06-18 19:47:54
|
>in_key_pressed function is also checking the state of the CAPS and SYM SHIFT keys so that it can distinguish between 'Q' and 'q', eg. With multiple keys pressed, CAPS and/or SYM SHIFT could be erroneously detected. There's no problem with this -- this issue has been thought of before. in_key_pressed does not check if caps and sym shift are not pressed for keys like 'q'. Their state is only check when they have to be pressed as in 'Q' or '$'. I'm now wondering if this is a PC keyboard issue. If you run your test program and press q, then a, then o. The o will not be registered. However if you press o, then a, then q the q will not be registered. That doesn't make any sense unless the PC keyboard driver / emulator cannot detect some keypress combinations. I will try with several other emulators and see if the same behaviour results. |