Opened 14 months ago
Closed 14 months ago
#18606 closed bug (fixed)
GetMouse() in MouseUp() does not show clicked button
Reported by: | thaflo | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | - General | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description (last modified by )
I wrote a small app to check messages from the mouse. in MouseDown() I call GetMouse and get different numbers for the different mouse buttons in MouseUp() I call GetMouse and get always 0 for different mouse buttons
src attached run in terminal to see output
(I am using Haiku in VMWare)
Attachments (2)
Change History (6)
by , 14 months ago
Attachment: | MouseButtonTest.zip added |
---|
comment:1 by , 14 months ago
Description: | modified (diff) |
---|
comment:2 by , 14 months ago
When MouseUp happens, the buttons are already released. So the buttons are 0.
If you need to do something on MouseUp that depends on a specific button, you have to remember in MouseDown which button was pressed.
Everything is working as intended and documented here.
comment:3 by , 14 months ago
Okay, thanks for the explanation. Didn't find that in the documentation... or at least I didn't understand it. I'm new to the Haiku API.
comment:4 by , 14 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I added a note about it in hrev57308.
mouse button click app