Page 1 of 1

Reading Mouse Buttons

Posted: Fri Apr 09, 2010 10:23 am
by LCD
Writing Multiplattform applications is not easy if the mouse buttons status cannot be checked. In games it is okay with ExamineMouse(). On Windows I can use GetAsyncKeyState_() API to read #VK_LBUTTON, #VK_RBUTTON or #VK_MBUTTON, even #VK_NEXT and #VK_PRIOR are possible to read. But these API Function are not Crossplattform Compatible. Reading Events does not help much, as they are in a pipeline, interrupted with other events, and no MButton Event is available, and you cannot read the state of multiple buttons at once. This is a big problem on Linux and Mac. Writting a painter-Application is a pain this way.
Please include a simple mouse button check like GetMouseButtonState(Button). Something outside the "old" Mouse library.

Re: Reading Mouse Buttons

Posted: Fri Apr 09, 2010 5:51 pm
by blueznl
+237

:-)

Okay, in simple words, I would like this as well :-)

Re: Reading Mouse Buttons

Posted: Fri Apr 09, 2010 6:33 pm
by DarkDragon
Hello,

Maybe you want to try this until it may be implemented:

http://www.purebasic.fr/english/viewtop ... ouseButton

Re: Reading Mouse Buttons

Posted: Fri Apr 09, 2010 9:27 pm
by LCD
Nice! This looks good, even if no Macintosh is implemented yet, it is what I was looking for :D