If you want to just check the press of its buttons, you can use GetKeyState on the button keys:
if ((GetKeyState(VK_LBUTTON) & 0x80) != 0)
{
// left button pressed, do something
}
if ((GetKeyState(VK_RBUTTON) & 0x80) != 0)
{
// right button pressed, do something
}

Find content
Male
