Archived

This topic is now archived and is closed to further replies.

DanG

wParam on WM_KEYDOWN acts wierd

Recommended Posts

I''m writing an app that uses Win32 C for the window and input. The thing is, my app is waiting for the ''w'' key to be pressed, but wParam never has this value. Through the debugger i saw that when i hit ''w'' on the keyboard, wParam has the value 87, ''W'' or capital ''w'' in ASCII. I checked for caps lock, shift, EVERYTHING, but I can''t get pressing the ''w'' key to get the ''w'' command (value 119). What is going on here? Does WM_KEYDOWN not use the ASCII character values?

Share this post


Link to post
Share on other sites