Archived

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

LyCilph

Windows message problem

Recommended Posts

Hi I have a problem with my input handler, which checks if any WM_KEYUP and WM_KEYDOWN mesages has been received. This works fine, save for a single key (the F10 key), which for some reason doesn''t send a VM_KEYDOWN message. In the WindowProc function I have:
  
LRESULT CALLBACK WindowProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{
  switch( msg )
  {
    case WM_KEYDOWN:
      {
        if( (int) wparam == VK_F9 )
          MSG( "F9 down" )
        else if( (int) wparam == VK_F10 )
          MSG( "F10 down" )
        else if( (int) wparam == VK_F11 )
          MSG( "F11 down" );

        keys[(int) wparam] = true;
        break;
      }
  ... other stuff
  
Now the middel message are never displayed, and I just can''t figure out why? Have anybody had this problem, and if so whats wrong!?!

Share this post


Link to post
Share on other sites