Capturing key presses with WinProc
-
I have an app that is controled using keypresses. Currently I use WinProc to capture the key presses and process them. My problem is non US layout keyboards. Example: If I wanted to test for a '?' key press on a US layout keyboard, I get a 'Shift' keypress and a '/' keypress. Most other international layouts do not have the '/' and '?' on the same key so this does not work. Is there anyway to capture a '?' or any other non-alphanumeric keys that require either shirt or alt to be presses. I.e returning the unicode of the key. Can this be done using windows API or should I be looking elsewhere? SDL or something?
---
-
I have an app that is controled using keypresses. Currently I use WinProc to capture the key presses and process them. My problem is non US layout keyboards. Example: If I wanted to test for a '?' key press on a US layout keyboard, I get a 'Shift' keypress and a '/' keypress. Most other international layouts do not have the '/' and '?' on the same key so this does not work. Is there anyway to capture a '?' or any other non-alphanumeric keys that require either shirt or alt to be presses. I.e returning the unicode of the key. Can this be done using windows API or should I be looking elsewhere? SDL or something?
---
-
I have an app that is controled using keypresses. Currently I use WinProc to capture the key presses and process them. My problem is non US layout keyboards. Example: If I wanted to test for a '?' key press on a US layout keyboard, I get a 'Shift' keypress and a '/' keypress. Most other international layouts do not have the '/' and '?' on the same key so this does not work. Is there anyway to capture a '?' or any other non-alphanumeric keys that require either shirt or alt to be presses. I.e returning the unicode of the key. Can this be done using windows API or should I be looking elsewhere? SDL or something?
---
Coremn wrote:
Example: If I wanted to test for a '?' key press on a US layout keyboard, I get a 'Shift' keypress and a '/' keypress. Most other international layouts do not have the '/' and '?' on the same key so this does not work.
how are you comparing the returning key press!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Re