mirror of https://github.com/bsnes-emu/bsnes.git
Fixed Switch Pro Controller in USB mode
This commit is contained in:
parent
23e8cc58c5
commit
ceacc226bc
|
@ -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),
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue