Original Post
Hello, Is there a C++ API that lets me, directly or otherwise, check whether or not a USB mouse is connected? Google was no help to me and neither was MSDN. Please help. -MentalMan
if(!GetSystemMetrics(SM_MOUSEPRESENT)) { SetTextColor(hdc,RGB(0,0,0)); TextOut(hdc,0,0,"NO MOUSE",strlen("NO MOUSE")); }Quote:
Nonzero if a mouse is installed; otherwise, 0. This value is rarely zero, because of support for virtual mice and because some systems detect the presence of the port instead of the presence of a mouse.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more