Know if there is a mouse and determine it's number of buttons  

Send By: Q3 Team
Web : www.q3.nu
Email: dlib@q3.nu
Date: 14/04/00

Tip accessed 565 times

 


With this call to Windows Api:


 	GetSysTemMetrics(SM_CMOUSEBUTTONS):integer;



Will return the number of buttons or 0 if there aren't any mouse installed in the system


Updated at 27/09/99
Thanks to Xavier Martínez that warned me that it was bad the constant... SM_CLEANBOOT was instead of SM_CMOUSEBUTTONS (sometimes one get up with bad foot...)