Hello,
I use GetAsyncKeyState() and want to convert the return code to Ascii. How can I can an Ascii code from a Scankey Code ?
Greetings, Nordwind 64
I use GetAsyncKeyState() and want to convert the return code to Ascii. How can I can an Ascii code from a Scankey Code ?
Greetings, Nordwind 64
You could map all the virtual key code, all 256 of them. GetAsyncKeyState only tells you if the key was pressed or not, meaning like a TRUE or FALSE. After your GetAsyncKeyState procedure, you could create another procedure that will check if these key states are TRUE or FALSE...
E.G.
procedure...
Or handle the WM_KEYDOWN message. For sure this will always work.
E.G.
procedure...
cmp gbUpKey, 0h
je @@CheckDownKey
;Do something here
jmp @@UpLocationExit
@@CheckDownKey:
cmp gbDownKey, 0h
je @@Check.....................
;Do something here
..............
Or handle the WM_KEYDOWN message. For sure this will always work.