Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualServant of the Lord

Posted 18 November 2012 - 09:11 PM

Win32 documentation says that WM_MOUSEMOVE's wParam attribute must be one of these values.

Perhaps you want MK_LBUTTON? I'm not very familiar with Win32 as a API, so I might be mistaken here.

However, this would be saying, "If the player moves the mouse AND has the left mouse button down, then close the program".

I think what you actually want is, "If the player clicks the left mouse button, then close the program". You probably want WM_KEYDOWN, not WM_MOUSEMOVE (Actually, if this is for drawing code, you'll want to handle both).

#2Servant of the Lord

Posted 18 November 2012 - 09:10 PM

Win32 documentation says that WM_MOUSEMOVE's wParam attribute must be one of these values.

Perhaps you want MK_LBUTTON? I'm not very familiar with Win32 as a API, so I might be mistaken here.

However, this would be saying, "If the player moves the mouse AND has the left mouse button down, then close the program".

I think what you actually want is, "If the player clicks the left mouse button, then close the program".

#1Servant of the Lord

Posted 18 November 2012 - 09:08 PM

Win32 documentation says that WM_MOUSEMOVE's wParam attribute must be one of these values.

Perhaps you want MK_LBUTTON? I'm not very familiar with Win32 as a API, so I might be mistaken here.

PARTNERS