the very beginning of mouse support in sm-ssc
This commit is contained in:
@@ -383,7 +383,6 @@ void InputHandler_DInput::UpdatePolled( DIDevice &device, const RageTimer &tm )
|
|||||||
if( hr == DIERR_INPUTLOST || hr == DIERR_NOTACQUIRED )
|
if( hr == DIERR_INPUTLOST || hr == DIERR_NOTACQUIRED )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/*
|
|
||||||
// do button checks here
|
// do button checks here
|
||||||
for( unsigned i = 0; i < device.Inputs.size(); ++i )
|
for( unsigned i = 0; i < device.Inputs.size(); ++i )
|
||||||
{
|
{
|
||||||
@@ -398,7 +397,6 @@ void InputHandler_DInput::UpdatePolled( DIDevice &device, const RageTimer &tm )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -447,7 +445,7 @@ void InputHandler_DInput::UpdateBuffered( DIDevice &device, const RageTimer &tm
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case in.BUTTON:
|
case in.BUTTON:
|
||||||
/*
|
// hope this works...
|
||||||
if(dev == DEVICE_MOUSE)
|
if(dev == DEVICE_MOUSE)
|
||||||
{
|
{
|
||||||
DeviceButton mouseInput = DeviceButton_Invalid;
|
DeviceButton mouseInput = DeviceButton_Invalid;
|
||||||
@@ -469,7 +467,6 @@ void InputHandler_DInput::UpdateBuffered( DIDevice &device, const RageTimer &tm
|
|||||||
ButtonPressed( DeviceInput(dev, mouseInput, !!evtbuf[i].dwData, tm) );
|
ButtonPressed( DeviceInput(dev, mouseInput, !!evtbuf[i].dwData, tm) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
*/
|
|
||||||
ButtonPressed( DeviceInput(dev, enum_add2(JOY_BUTTON_1, in.num), !!evtbuf[i].dwData, tm) );
|
ButtonPressed( DeviceInput(dev, enum_add2(JOY_BUTTON_1, in.num), !!evtbuf[i].dwData, tm) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user