
Detecting whether a mouse button is held down
?Does anyone know of an API call that can detect whether or not (and
?ideally which) mouse buttons are down?
GetAsyncKeyState should do it using:
VK_LBUTTON = 1
VK_MBUTTON = 4
VK_RBUTTON = 2
You might also need
GetSystemMetrics(SM_SWAPBUTTON)
to see if the buttons have been swapped.
--
Paul Marshall