Changes

1,535 bytes added ,  20:59, 26 November 2020
no edit summary
Line 94: Line 94:  
| 106 || [[#AcquireNpadStyleSetUpdateEventHandle]]
 
| 106 || [[#AcquireNpadStyleSetUpdateEventHandle]]
 
|-
 
|-
| 107 || DisconnectNpad
+
| 107 || [[#DisconnectNpad]]
 
|-
 
|-
| 108 || GetPlayerLedPattern
+
| 108 || [[#GetPlayerLedPattern]]
 
|-
 
|-
 
| 109 || [5.0.0+] [[#ActivateNpadWithRevision]]
 
| 109 || [5.0.0+] [[#ActivateNpadWithRevision]]
Line 112: Line 112:  
| 125 || [[#MergeSingleJoyAsDualJoy]]
 
| 125 || [[#MergeSingleJoyAsDualJoy]]
 
|-
 
|-
| 126 || StartLrAssignmentMode
+
| 126 || [[#StartLrAssignmentMode]]
 
|-
 
|-
| 127 || StopLrAssignmentMode
+
| 127 || [[#StopLrAssignmentMode]]
 
|-
 
|-
 
| 128 || [[#SetNpadHandheldActivationMode]]
 
| 128 || [[#SetNpadHandheldActivationMode]]
Line 120: Line 120:  
| 129 || [[#GetNpadHandheldActivationMode]]
 
| 129 || [[#GetNpadHandheldActivationMode]]
 
|-
 
|-
| 130 || SwapNpadAssignment
+
| 130 || [[#SwapNpadAssignment]]
 
|-
 
|-
| 131 || IsUnintendedHomeButtonInputProtectionEnabled
+
| 131 || [[#IsUnintendedHomeButtonInputProtectionEnabled]]
 
|-
 
|-
| 132 || EnableUnintendedHomeButtonInputProtection
+
| 132 || [[#EnableUnintendedHomeButtonInputProtection]]
 
|-
 
|-
| 133 || [5.0.0+] SetNpadJoyAssignmentModeSingleWithDestination
+
| 133 || [5.0.0+] [[#SetNpadJoyAssignmentModeSingleWithDestination]]
 
|-
 
|-
| 134 || [6.1.0+] SetNpadAnalogStickUseCenterClamp
+
| 134 || [6.1.0+] [[#SetNpadAnalogStickUseCenterClamp]]
 
|-
 
|-
| 135 || [8.0.0+] SetNpadCaptureButtonAssignment
+
| 135 || [8.0.0+] [[#SetNpadCaptureButtonAssignment]]
 
|-
 
|-
| 136 || [8.0.0+] ClearNpadCaptureButtonAssignment
+
| 136 || [8.0.0+] [[#ClearNpadCaptureButtonAssignment]]
 
|-
 
|-
 
| 200 || [[#GetVibrationDeviceInfo]]
 
| 200 || [[#GetVibrationDeviceInfo]]
Line 388: Line 388:     
The value for the last u64 doesn't seem to matter (?): official sw sets this to the address of the structure used for storing the event which is initialized after using this cmd.
 
The value for the last u64 doesn't seem to matter (?): official sw sets this to the address of the structure used for storing the event which is initialized after using this cmd.
 +
 +
== DisconnectNpad ==
 +
Takes a PID, an u32 [[#NpadIdType]], and an [[AM_services|AppletResourceUserId]]. No output.
 +
 +
== GetPlayerLedPattern ==
 +
Takes an input u32 [[#NpadIdType]], returns an output u64 (which is exposed by sdknso as an u8).
    
== ActivateNpadWithRevision ==
 
== ActivateNpadWithRevision ==
Line 419: Line 425:  
== MergeSingleJoyAsDualJoy ==
 
== MergeSingleJoyAsDualJoy ==
 
Takes a PID-descriptor, two u32s, and an [[AM_services|AppletResourceUserId]]. No output.
 
Takes a PID-descriptor, two u32s, and an [[AM_services|AppletResourceUserId]]. No output.
 +
 +
== StartLrAssignmentMode ==
 +
Takes a PID and an [[AM_services|AppletResourceUserId]], no output.
 +
 +
== StopLrAssignmentMode ==
 +
Takes a PID and an [[AM_services|AppletResourceUserId]], no output.
    
== SetNpadHandheldActivationMode ==
 
== SetNpadHandheldActivationMode ==
Line 425: Line 437:  
== GetNpadHandheldActivationMode ==
 
== GetNpadHandheldActivationMode ==
 
Takes a PID and an u64 [[AM_services|AppletResourceUserId]]. Returns an output s64 [[#NpadHandheldActivationMode]]. Official user-processes Abort if the output value is not 0-2.
 
Takes a PID and an u64 [[AM_services|AppletResourceUserId]]. Returns an output s64 [[#NpadHandheldActivationMode]]. Official user-processes Abort if the output value is not 0-2.
 +
 +
== SwapNpadAssignment ==
 +
Takes a PID, two u32s [[#NpadIdType]], and an [[AM_services|AppletResourceUserId]]. No output.
 +
 +
== IsUnintendedHomeButtonInputProtectionEnabled ==
 +
Takes a PID, an u32 [[#NpadIdType]], and an [[AM_services|AppletResourceUserId]]. Returns an output bool.
 +
 +
Unused by sdknso, the flag from [[#NpadSystemProperties]] is used instead.
 +
 +
== EnableUnintendedHomeButtonInputProtection ==
 +
Takes a PID, a bool, an u32 [[#NpadIdType]], and an [[AM_services|AppletResourceUserId]]. No output.
 +
 +
== SetNpadJoyAssignmentModeSingleWithDestination ==
 +
Takes a PID, an u32, an [[AM_services|AppletResourceUserId]], and s64 [[#NpadJoyDeviceType]]. Returns an output bool and u32.
 +
 +
== SetNpadAnalogStickUseCenterClamp ==
 +
Takes a PID, a bool, an [[AM_services|AppletResourceUserId]], no output.
 +
 +
== SetNpadCaptureButtonAssignment ==
 +
Takes a PID, a [[#NpadStyleSet]], an [[AM_services|AppletResourceUserId]], a [[#NpadButtonSet]], no output.
 +
 +
== ClearNpadCaptureButtonAssignment ==
 +
Takes a PID, an [[AM_services|AppletResourceUserId]], no output.
    
== GetVibrationDeviceInfo ==
 
== GetVibrationDeviceInfo ==