Originally posted by Deathwalker9959
I’ve seen your project ScpToolkit and I was looking around the source and all and I have a question.
I’m trying to retrieve the rumble motor speed values but I cant seem to find some kind of a function so far I have found this but I don’t think its what I’m looking for.
What im trying to achieve is to send those values off to the arduino for having force feedback pedals etc
public override bool Rumble(byte large, byte small)
{
lock (_hidReport)
{
var transfered = 0;
if (GlobalConfiguration.Instance.DisableRumble)
{
_hidReport[2] = 0;
_hidReport[4] = 0;
}
else
{
_hidReport[2] = (byte)(small > 0 ? 0x01 : 0x00);
_hidReport[4] = large;
}
_hidReport[9] = _ledStatus;
// TODO: this is a blocking call in a locked region, fix
return SendTransfer(UsbHidRequestType.HostToDevice, UsbHidRequest.SetReport,
ToValue(UsbHidReportRequestType.Output, UsbHidReportRequestId.One),
_hidReport, ref transfered);
}
}