Is it possible to convert scan code from FormKeyDown and FormKeyUp to character in FormKeyPressed in real time?
Why?
I am programming retro game Flappy from 8-bit MZ-800 computer and I have game in thread. I am giving input characters to threat by FormKeyDown and FormKeyUp. I need information about key up event. But...
This part is translated with Google Translate:
After pressing a key, I pass this information to the thread. The thread detects the pressed key when it needs it. If some time has passed and the key has been released, the thread does not have this information. Therefore, I decided to use FormKeyDown and FormKeyUp. But here a problem arose. I need to convert the pressed key to a real value, but after it is released, I need to know that the key is no longer pressed. This is not a problem. The problem is that I also need to combine Shift, Caps Lock and so on. And maybe there is already a function in Lazarus for this, but it also has to monitor whether the key has been released. Is it possible to find something like this in the Lazarus libraries?
Thank you for your help.