Skip to main content
gamedev.net
🔒 Locked

Checking for keypress...

Started by sckoobs 0 replies 150+ views
Original Post
sckoobs
sckoobs
How would I store the actual character that results from a keypress using the WM_KEYDOWN message?? Thanks, Max
S1CA
S1CA
Use WM_CHAR instead...

...and remember to put a TranslateMessage() and DispatchMessage() in your message pump.

That''ll do all the conversion to ASCII for you, and will also make your code work with UNICODE and the IME (for languages like Japanese, Korean, Chinese etc)

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.