Converting windows keypress to DOS scan code
Posted on 1997-09-10
I am converting a DOS program to Windows. Most of the program is converted but the input has caused me a big problem. I don't know how to convert a windows keypress message to a DOS scan code. In the DOS version I use interupt x16.
The easiest change would be to use a function that would convert the windows WM_KEYUP and WM_KEYDOWN messages to DOS scan codes, as the rest of the program is written to use scan codes for input processing.
Is there a function which does this or is there a simple way to do the conversion? I need to allow the key to remain down and also to keep the repeat count.
Thanks in advance for your help.