Reading Mouse Buttons
Posted: Fri Apr 09, 2010 10:23 am
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.
Please include a simple mouse button check like GetMouseButtonState(Button). Something outside the "old" Mouse library.