Skip to main content
GameDev.net gamedev.net
🔒 Locked

Catching keys

Started by Brisbane Dec 11, 2002 at 11:47 AM 0 replies 250+ views
Original Post
Brisbane
Brisbane
Does anyone know what wParam contains or has anyone ever found a way to extract keypresses from it? I am trying to make my program catch a / then allow input of characters so I can use commands... Thank you
Forgive me for what I must do in the name of peace...
Hawkeye3
Hawkeye3
In your message loop, add WM_CHAR. You can then typecast the wParam ( chCharCode = (TCHAR) wParam; ) to get the character. You can then decide what to do depending on what the character is.

Topic Locked

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

Sign in to reply to this topic.