Jump to content
  • Advertisement


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


Windows message problem

This topic is 5914 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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;
  ... 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!