DataReport: Amend conditional test for data reports in IsValidMode
This particular range is kind of bizarre, and would only interpret interleave mode 2 as a valid mode, while rejecting interleave mode 1 and the extension byte mode. As far as I know, based off the information on Wiibrew, we should be considering all three values within this range as valid.
This commit is contained in:
parent
ec5fbeb0d6
commit
b21d62116d
|
@ -335,7 +335,7 @@ InputReportID DataReportBuilder::GetMode() const
|
||||||
bool DataReportBuilder::IsValidMode(InputReportID mode)
|
bool DataReportBuilder::IsValidMode(InputReportID mode)
|
||||||
{
|
{
|
||||||
return (mode >= InputReportID::ReportCore && mode <= InputReportID::ReportCoreAccelIR10Ext6) ||
|
return (mode >= InputReportID::ReportCore && mode <= InputReportID::ReportCoreAccelIR10Ext6) ||
|
||||||
(mode >= InputReportID::ReportExt21 && InputReportID::ReportInterleave2 <= mode);
|
(mode >= InputReportID::ReportExt21 && mode <= InputReportID::ReportInterleave2);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DataReportBuilder::HasCore() const
|
bool DataReportBuilder::HasCore() const
|
||||||
|
|
Loading…
Reference in New Issue