Original Post
I put the WM_CHAR in my winproc but no key triggers it. Wondering what is going on... I am using the NeHe Basecode, a little modified, because I added some things to it...
LRESULT CALLBACK WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
// Get The Window Context
GL_Window* window = (GL_Window*)(GetWindowLong (hWnd, GWL_USERDATA));
switch (uMsg) // Evaluate Window Message
{
case WM_CHAR:
{
window->keys->LastChar = wParam;
MessageBox(NULL, (char*)window->keys->LastChar, "moo", MB_OK);
return 0;
}
- DarkNebula
Galatron.net - The massively multiplayer real time strategy!