still works, nothing serious yet

This commit is contained in:
AJ Kelly
2011-02-14 14:16:24 -06:00
parent c4510a46c8
commit 6d44f22dbe
@@ -348,12 +348,12 @@ static BOOL CALLBACK DIMouse_EnumDevObjectsProc(LPCDIDEVICEOBJECTINSTANCE dev, L
input_t in;
// todo: check mask for accuracy -aj
const int SupportedMask = DIDFT_BUTTON | DIDFT_PSHBUTTON;
const int SupportedMask = DIDFT_BUTTON;
if(!(dev->dwType & SupportedMask))
return DIENUM_CONTINUE; // unsupported
// xxx: does this check for scrollwheels? -aj
if(dev->dwType & (DIDFT_BUTTON | DIDFT_PSHBUTTON) ) {
if(dev->dwType & DIDFT_BUTTON ) {
in.type = in.BUTTON;
in.num = device->buttons;
device->buttons++;