Archived

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

oWen

Detecting mouse up w/ DInput

Recommended Posts

EbonySeraph    122
Windows messages WM_RBUTTONDOWN will be sent if the button is pushed. And WM_RBUTTONUP will be sent when it is released. I think there is a mesage for a simple click. If there isn''t one then you just have to use WM_RBUTTONUP.

Do note that L should be used if you are talking about the left mouse button. And the LOWORD and HIWORD of lParam wil be the mouse poistion during that click, x and y respectively.

"Ogun''s Laughter Is No Joke!!!" - Ogun Kills On The Right, A Nigerian Poem.

Share this post


Link to post
Share on other sites
TheFez    151
If you are using buffered input then it will come back with a keyup (sort of like the keyboard) when it is up again. If your not using that, when its not down, its up. So just check it each time for being down and if its not then switch it to being up.

Share this post


Link to post
Share on other sites