Fixed Switch Pro Controller in USB mode

This commit is contained in:
Lior Halphon 2021-06-23 21:21:53 +03:00
parent 23e8cc58c5
commit ceacc226bc
2 changed files with 4 additions and 5 deletions

View File

@ -442,10 +442,9 @@ hacksByName = @{
@{@"reportID": @(1), @"size":@12, @"offset":@76, @"usagePage":@(kHIDPage_GenericDesktop), @"usage":@(kHIDUsage_GD_Ry), @"min": @0xFFF, @"max": @0},
],
},
JOYIgnoredReports: @[@(0x30)], // Ignore the real 0x30 report as it's broken
},
JOYIgnoredReports: @(0x30), // Ignore the real 0x30 report as it's broken
@"PLAYSTATION(R)3 Controller": @{ // DualShock 3
JOYAxisGroups: @{
@(kHIDUsage_GD_X): @(0),

View File

@ -451,8 +451,8 @@ typedef union {
id previous = nil;
NSSet *ignoredReports = nil;
if (hacks[ignoredReports]) {
ignoredReports = [NSSet setWithArray:hacks[ignoredReports]];
if (hacks[JOYIgnoredReports]) {
ignoredReports = [NSSet setWithArray:hacks[JOYIgnoredReports]];
}
for (id _element in array) {