mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Use hidControllerIDToOfficial for the input id, with hidSetNpadJoyAssignmentModeSingleByDefault, hidSetNpadJoyAssignmentModeDual, and hidMergeSingleJoyAsDualJoy.
This commit is contained in:
parent
1a676a68f5
commit
81781f0782
@ -1032,11 +1032,11 @@ Result hidSetNpadJoyHoldType(HidJoyHoldType type) {
|
||||
}
|
||||
|
||||
Result hidSetNpadJoyAssignmentModeSingleByDefault(HidControllerID id) {
|
||||
return _hidCmdWithInputU32(122, id);
|
||||
return _hidCmdWithInputU32(122, hidControllerIDToOfficial(id));
|
||||
}
|
||||
|
||||
Result hidSetNpadJoyAssignmentModeDual(HidControllerID id) {
|
||||
return _hidCmdWithInputU32(124, id);
|
||||
return _hidCmdWithInputU32(124, hidControllerIDToOfficial(id));
|
||||
}
|
||||
|
||||
Result hidMergeSingleJoyAsDualJoy(HidControllerID id0, HidControllerID id1) {
|
||||
@ -1063,8 +1063,8 @@ Result hidMergeSingleJoyAsDualJoy(HidControllerID id0, HidControllerID id1) {
|
||||
|
||||
raw->magic = SFCI_MAGIC;
|
||||
raw->cmd_id = 125;
|
||||
raw->id0 = id0;
|
||||
raw->id1 = id1;
|
||||
raw->id0 = hidControllerIDToOfficial(id0);
|
||||
raw->id1 = hidControllerIDToOfficial(id1);
|
||||
raw->AppletResourceUserId = AppletResourceUserId;
|
||||
|
||||
rc = serviceIpcDispatch(&g_hidSrv);
|
||||
|
Loading…
Reference in New Issue
Block a user