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.
Reading Mouse Buttons
Reading Mouse Buttons
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Re: Reading Mouse Buttons
+237

Okay, in simple words, I would like this as well

Okay, in simple words, I would like this as well

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Reading Mouse Buttons
Hello,
Maybe you want to try this until it may be implemented:
http://www.purebasic.fr/english/viewtop ... ouseButton
Maybe you want to try this until it may be implemented:
http://www.purebasic.fr/english/viewtop ... ouseButton
bye,
Daniel
Daniel
Re: Reading Mouse Buttons
Nice! This looks good, even if no Macintosh is implemented yet, it is what I was looking for 

My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10