HID services: Difference between revisions
Masagrator (talk | contribs) |
Masagrator (talk | contribs) |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 384: | Line 384: | ||
== CreateAppletResource == | == CreateAppletResource == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an [[#IAppletResource]]. | ||
== ActivateDebugPad == | == ActivateDebugPad == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== ActivateTouchScreen == | == ActivateTouchScreen == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== ActivateMouse == | == ActivateMouse == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== ActivateKeyboard == | == ActivateKeyboard == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SendKeyboardLockKeyEvent == | == SendKeyboardLockKeyEvent == | ||
Takes a PID, an u32 BitFlagSet [[#KeyboardLockKeyEvent]], and an [[ | Takes a PID, an u32 BitFlagSet [[#KeyboardLockKeyEvent]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This is identical to the hidsys cmd. | This is identical to the hidsys cmd. | ||
| Line 414: | Line 414: | ||
== ActivateXpad == | == ActivateXpad == | ||
Takes a PID, an u32 "nn::hid::BasicXpadId", an [[ | Takes a PID, an u32 "nn::hid::BasicXpadId", an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
[10.0.0+] Stubbed, just returns 0. | [10.0.0+] Stubbed, just returns 0. | ||
| Line 469: | Line 469: | ||
== StartSixAxisSensor == | == StartSixAxisSensor == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== StopSixAxisSensor == | == StopSixAxisSensor == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== IsSixAxisSensorFusionEnabled == | == IsSixAxisSensorFusionEnabled == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
== EnableSixAxisSensorFusion == | == EnableSixAxisSensorFusion == | ||
Takes a PID, a bool, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a bool, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetSixAxisSensorFusionParameters == | == SetSixAxisSensorFusionParameters == | ||
Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], two floats, and an u64 [[ | Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], two floats, and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Official sw will throw an error before using this cmd, if the first float is outside of the bounds of 0.0f-1.0f. | Official sw will throw an error before using this cmd, if the first float is outside of the bounds of 0.0f-1.0f. | ||
== GetSixAxisSensorFusionParameters == | == GetSixAxisSensorFusionParameters == | ||
Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[ | Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns two output floats. | ||
== ResetSixAxisSensorFusionParameters == | == ResetSixAxisSensorFusionParameters == | ||
Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[ | Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetAccelerometerParameters == | == SetAccelerometerParameters == | ||
Takes a PID, a [[#SixAxisSensorHandle]], two floats, and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], two floats, and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
sdknso will throw an error before using this cmd, if either of the floats are less than 0.0f, or when the second float is larger than the first float. | sdknso will throw an error before using this cmd, if either of the floats are less than 0.0f, or when the second float is larger than the first float. | ||
| Line 499: | Line 499: | ||
== GetAccelerometerParameters == | == GetAccelerometerParameters == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns two output floats. | ||
sdknso 10.x removed the nn::hid wrapper for this. | sdknso 10.x removed the nn::hid wrapper for this. | ||
== ResetAccelerometerParameters == | == ResetAccelerometerParameters == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
sdknso 10.x removed the nn::hid wrapper for this. | sdknso 10.x removed the nn::hid wrapper for this. | ||
== SetAccelerometerPlayMode == | == SetAccelerometerPlayMode == | ||
Takes a PID, a [[#SixAxisSensorHandle]], an u32 [[#AccelerometerPlayMode]], and an u64 [[ | Takes a PID, a [[#SixAxisSensorHandle]], an u32 [[#AccelerometerPlayMode]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
sdknso 10.x removed the nn::hid wrapper for this. | sdknso 10.x removed the nn::hid wrapper for this. | ||
== GetAccelerometerPlayMode == | == GetAccelerometerPlayMode == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u32 [[#AccelerometerPlayMode]]. | ||
sdknso 10.x removed the nn::hid wrapper for this. | sdknso 10.x removed the nn::hid wrapper for this. | ||
== ResetAccelerometerPlayMode == | == ResetAccelerometerPlayMode == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
sdknso 10.x removed the nn::hid wrapper for this. | sdknso 10.x removed the nn::hid wrapper for this. | ||
== SetGyroscopeZeroDriftMode == | == SetGyroscopeZeroDriftMode == | ||
Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], an u32 [[#GyroscopeZeroDriftMode]], and an u64 [[ | Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], an u32 [[#GyroscopeZeroDriftMode]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== GetGyroscopeZeroDriftMode == | == GetGyroscopeZeroDriftMode == | ||
Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[ | Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u32 [[#GyroscopeZeroDriftMode]]. | ||
Gets the value written by [[#SetGyroscopeZeroDriftMode]]. | Gets the value written by [[#SetGyroscopeZeroDriftMode]]. | ||
== ResetGyroscopeZeroDriftMode == | == ResetGyroscopeZeroDriftMode == | ||
Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[ | Takes a PID-descriptor, an u32 [[#SixAxisSensorHandle]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Same as [[#SetGyroscopeZeroDriftMode]] except the [[#GyroscopeZeroDriftMode]] is hard-coded to value 1 (Standard). | Same as [[#SetGyroscopeZeroDriftMode]] except the [[#GyroscopeZeroDriftMode]] is hard-coded to value 1 (Standard). | ||
== IsSixAxisSensorAtRest == | == IsSixAxisSensorAtRest == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
== IsFirmwareUpdateAvailableForSixAxisSensor == | == IsFirmwareUpdateAvailableForSixAxisSensor == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
== EnableSixAxisSensorUnalteredPassthrough == | == EnableSixAxisSensorUnalteredPassthrough == | ||
Takes a PID, a [[#SixAxisSensorHandle]], a bool, and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], a bool, and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== IsSixAxisSensorUnalteredPassthroughEnabled == | == IsSixAxisSensorUnalteredPassthroughEnabled == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
== StoreSixAxisSensorCalibrationParameter == | == StoreSixAxisSensorCalibrationParameter == | ||
Takes a PID, a [[#SixAxisSensorHandle]], a SixAxisSensorCalibrationParameter, and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], a SixAxisSensorCalibrationParameter, and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== LoadSixAxisSensorCalibrationParameter == | == LoadSixAxisSensorCalibrationParameter == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns a SixAxisSensorCalibrationParameter. | ||
== GetSixAxisSensorIcInformation == | == GetSixAxisSensorIcInformation == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns a SixAxisSensorIcInformation. | ||
== ResetIsSixAxisSensorDeviceNewlyAssigned == | == ResetIsSixAxisSensorDeviceNewlyAssigned == | ||
Takes a PID, a [[#SixAxisSensorHandle]], and an [[ | Takes a PID, a [[#SixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== ActivateGesture == | == ActivateGesture == | ||
Takes a PID-descriptor, a s32, and an u64 [[ | Takes a PID-descriptor, a s32, and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
sdknso passes hard-coded value 1 for the s32. | sdknso passes hard-coded value 1 for the s32. | ||
== SetSupportedNpadStyleSet == | == SetSupportedNpadStyleSet == | ||
Takes a PID-descriptor, an u32 [[#NpadStyleTag]], and an u64 [[ | Takes a PID-descriptor, an u32 [[#NpadStyleTag]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== GetSupportedNpadStyleSet == | == GetSupportedNpadStyleSet == | ||
Takes a PID-descriptor and an u64 [[ | Takes a PID-descriptor and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an u32 [[#NpadStyleTag]]. | ||
== SetSupportedNpadIdType == | == SetSupportedNpadIdType == | ||
Takes a PID-descriptor, a type-0x9 input buffer, and an [[ | Takes a PID-descriptor, a type-0x9 input buffer, and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
The input buffer contains an array of [[#NpadIdType]]. The total entries in this array must be <=10. | The input buffer contains an array of [[#NpadIdType]]. The total entries in this array must be <=10. | ||
== ActivateNpad == | == ActivateNpad == | ||
Takes a PID-descriptor and an [[ | Takes a PID-descriptor and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
On newer sysvers this runs the same code as [[#ActivateNpadWithRevision]], with revision=0. | On newer sysvers this runs the same code as [[#ActivateNpadWithRevision]], with revision=0. | ||
== DeactivateNpad == | == DeactivateNpad == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
This just returns 0. | This just returns 0. | ||
| Line 589: | Line 589: | ||
== AcquireNpadStyleSetUpdateEventHandle == | == AcquireNpadStyleSetUpdateEventHandle == | ||
Takes a PID, an input u32, an u64 [[ | Takes a PID, an input u32, an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and an u64. Returns an output event handle, autoclear for this is user-specified. | ||
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 == | == DisconnectNpad == | ||
Takes a PID, an u32 [[#NpadIdType]], and an [[ | Takes a PID, an u32 [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== GetPlayerLedPattern == | == GetPlayerLedPattern == | ||
| Line 600: | Line 600: | ||
== ActivateNpadWithRevision == | == ActivateNpadWithRevision == | ||
Takes a PID-descriptor, a s32 revision, and an [[ | Takes a PID-descriptor, a s32 revision, and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
Revisions: | Revisions: | ||
| Line 610: | Line 610: | ||
== SetNpadJoyHoldType == | == SetNpadJoyHoldType == | ||
Takes a PID-descriptor, an input [[#NpadJoyHoldType]], and an [[ | Takes a PID-descriptor, an input [[#NpadJoyHoldType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== GetNpadJoyHoldType == | == GetNpadJoyHoldType == | ||
Takes a PID-descriptor and an [[ | Takes a PID-descriptor and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an output [[#NpadJoyHoldType]]. | ||
sdknso will Abort when the output is not 0-1. | sdknso will Abort when the output is not 0-1. | ||
== SetNpadJoyAssignmentModeSingleByDefault == | == SetNpadJoyAssignmentModeSingleByDefault == | ||
Takes a PID-descriptor, an u32 [[#NpadIdType]], and an [[ | Takes a PID-descriptor, an u32 [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
This eventually calls the same func as [[#SetNpadJoyAssignmentModeSingle]], except with [[#NpadJoyDeviceType]]=0. | This eventually calls the same func as [[#SetNpadJoyAssignmentModeSingle]], except with [[#NpadJoyDeviceType]]=0. | ||
== SetNpadJoyAssignmentModeSingle == | == SetNpadJoyAssignmentModeSingle == | ||
Takes a PID-descriptor, an u32 [[#NpadIdType]], [[ | Takes a PID-descriptor, an u32 [[#NpadIdType]], [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and s64 [[#NpadJoyDeviceType]]. No output. | ||
This eventually runs the same code as [[#SetNpadJoyAssignmentModeSingleWithDestination]], except the output fields aren't exposed. | This eventually runs the same code as [[#SetNpadJoyAssignmentModeSingleWithDestination]], except the output fields aren't exposed. | ||
== SetNpadJoyAssignmentModeDual == | == SetNpadJoyAssignmentModeDual == | ||
Takes a PID-descriptor, an u32 [[#NpadIdType]], and an [[ | Takes a PID-descriptor, an u32 [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== MergeSingleJoyAsDualJoy == | == MergeSingleJoyAsDualJoy == | ||
Takes a PID-descriptor, two u32 [[#NpadIdType]], and an [[ | Takes a PID-descriptor, two u32 [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== StartLrAssignmentMode == | == StartLrAssignmentMode == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== StopLrAssignmentMode == | == StopLrAssignmentMode == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetNpadHandheldActivationMode == | == SetNpadHandheldActivationMode == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a s64 [[#NpadHandheldActivationMode]], no output. | ||
== GetNpadHandheldActivationMode == | == GetNpadHandheldActivationMode == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an output s64 [[#NpadHandheldActivationMode]]. Official user-processes Abort if the output value is not 0-2. | ||
== SwapNpadAssignment == | == SwapNpadAssignment == | ||
Takes a PID, two u32s [[#NpadIdType]], and an [[ | Takes a PID, two u32s [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== IsUnintendedHomeButtonInputProtectionEnabled == | == IsUnintendedHomeButtonInputProtectionEnabled == | ||
Takes a PID, an u32 [[#NpadIdType]], and an [[ | Takes a PID, an u32 [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an output bool. | ||
Unused by sdknso, the flag from [[#NpadSystemProperties]] is used instead. | Unused by sdknso, the flag from [[#NpadSystemProperties]] is used instead. | ||
== EnableUnintendedHomeButtonInputProtection == | == EnableUnintendedHomeButtonInputProtection == | ||
Takes a PID, a bool, an u32 [[#NpadIdType]], and an [[ | Takes a PID, a bool, an u32 [[#NpadIdType]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== SetNpadJoyAssignmentModeSingleWithDestination == | == SetNpadJoyAssignmentModeSingleWithDestination == | ||
Takes a PID, an u32, an [[ | Takes a PID, an u32, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and s64 [[#NpadJoyDeviceType]]. Returns an output bool and u32 [[#NpadIdType]]. | ||
The bool indicates whether the output [[#NpadIdType]] is set. | The bool indicates whether the output [[#NpadIdType]] is set. | ||
== SetNpadAnalogStickUseCenterClamp == | == SetNpadAnalogStickUseCenterClamp == | ||
Takes a PID, a bool, an [[ | Takes a PID, a bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetNpadCaptureButtonAssignment == | == SetNpadCaptureButtonAssignment == | ||
Takes a PID, a [[#NpadStyleSet]], an [[ | Takes a PID, a [[#NpadStyleSet]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#NpadButtonSet]], no output. | ||
Exactly 1 bit must be set in the [[#NpadStyleSet]]. Multiple button bits can be set. | Exactly 1 bit must be set in the [[#NpadStyleSet]]. Multiple button bits can be set. | ||
| Line 672: | Line 672: | ||
== ClearNpadCaptureButtonAssignment == | == ClearNpadCaptureButtonAssignment == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetSceneIdForPrivateApp == | == SetSceneIdForPrivateApp == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], an u64, no output. | ||
The u64 is converted from a s32 by official sw. | The u64 is converted from a s32 by official sw. | ||
| Line 684: | Line 684: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u64. | ||
The u64 is converted to a s32 by official sw. | The u64 is converted to a s32 by official sw. | ||
| Line 692: | Line 692: | ||
== SendVibrationValue == | == SendVibrationValue == | ||
Takes a PID-descriptor, a [[#VibrationDeviceHandle]], a [[#VibrationValue]] immediately after that, and an u64 [[ | Takes a PID-descriptor, a [[#VibrationDeviceHandle]], a [[#VibrationValue]] immediately after that, and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== GetActualVibrationValue == | == GetActualVibrationValue == | ||
Takes a PID-descriptor, a [[#VibrationDeviceHandle]], and an u64 [[ | Takes a PID-descriptor, a [[#VibrationDeviceHandle]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an output [[#VibrationValue]]. | ||
== CreateActiveVibrationDeviceList == | == CreateActiveVibrationDeviceList == | ||
| Line 709: | Line 709: | ||
== SendVibrationValues == | == SendVibrationValues == | ||
Takes an u64 [[ | Takes an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and two type-0x9 input buffers containing an array of: [[#VibrationDeviceHandle]] for first buffer, and [[#VibrationValue]] for the second buffer. | ||
Official sw uses the same entry-count for each array. | Official sw uses the same entry-count for each array. | ||
== SendVibrationGcErmCommand == | == SendVibrationGcErmCommand == | ||
Takes a PID, a [[#VibrationDeviceHandle]], [[ | Takes a PID, a [[#VibrationDeviceHandle]], [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], an u64 [[#VibrationGcErmCommand]], no output. | ||
== GetActualVibrationGcErmCommand == | == GetActualVibrationGcErmCommand == | ||
Takes a PID, a [[#VibrationDeviceHandle]], [[ | Takes a PID, a [[#VibrationDeviceHandle]], [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u64 [[#VibrationGcErmCommand]]. | ||
== BeginPermitVibrationSession == | == BeginPermitVibrationSession == | ||
Takes an input [[ | Takes an input [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Begins a forced-permitted vibration session. | Begins a forced-permitted vibration session. | ||
| Line 730: | Line 730: | ||
== IsVibrationDeviceMounted == | == IsVibrationDeviceMounted == | ||
Takes a PID, an [[#VibrationDeviceHandle]], and an u64 [[ | Takes a PID, an [[#VibrationDeviceHandle]], and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 bool. | ||
== SendVibrationValueInBool == | == SendVibrationValueInBool == | ||
Takes a PID, a bool, a [[#VibrationDeviceHandle]], and an [[ | Takes a PID, a bool, a [[#VibrationDeviceHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Stubbed, this just returns 0. | Stubbed, this just returns 0. | ||
| Line 742: | Line 742: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a [[#VibrationDeviceHandle]], an [[ | Takes a PID, a [[#VibrationDeviceHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
== ActivateConsoleSixAxisSensor == | == ActivateConsoleSixAxisSensor == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
As of [10.0.0+] sdknso no longer uses this with SevenSixAxisSensor. | As of [10.0.0+] sdknso no longer uses this with SevenSixAxisSensor. | ||
== StartConsoleSixAxisSensor == | == StartConsoleSixAxisSensor == | ||
Takes a PID, a [[#ConsoleSixAxisSensorHandle]], and an [[ | Takes a PID, a [[#ConsoleSixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== StopConsoleSixAxisSensor == | == StopConsoleSixAxisSensor == | ||
Takes a PID, a [[#ConsoleSixAxisSensorHandle]], and an [[ | Takes a PID, a [[#ConsoleSixAxisSensorHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== ActivateSevenSixAxisSensor == | == ActivateSevenSixAxisSensor == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Unused by official sw, [[#ActivateConsoleSixAxisSensor]] is used instead. However, internally ActivateSevenSixAxisSensor is identical to [[#ActivateConsoleSixAxisSensor]]. Deactivation is done with hiddbg DeactivateConsoleSixAxisSensor (which is unused by official sw). | Unused by official sw, [[#ActivateConsoleSixAxisSensor]] is used instead. However, internally ActivateSevenSixAxisSensor is identical to [[#ActivateConsoleSixAxisSensor]]. Deactivation is done with hiddbg DeactivateConsoleSixAxisSensor (which is unused by official sw). | ||
== StartSevenSixAxisSensor == | == StartSevenSixAxisSensor == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== StopSevenSixAxisSensor == | == StopSevenSixAxisSensor == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== InitializeSevenSixAxisSensor == | == InitializeSevenSixAxisSensor == | ||
Takes a PID, an u64 [[ | Takes a PID, an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], two u64s for the size of each TransferMemory, and two TransferMemory handles. No output. | ||
The size of the first TransferMemory is 0x1000 with MemoryPermission=read-only, while the second one has size 0x7F000 with MemoryPermission=none. sdknso uses an user-specified buffer for this, with the second tmem immediately following the first one. sdknso later uses data at buf+0 for loading SevenSixAxisSensor state. | The size of the first TransferMemory is 0x1000 with MemoryPermission=read-only, while the second one has size 0x7F000 with MemoryPermission=none. sdknso uses an user-specified buffer for this, with the second tmem immediately following the first one. sdknso later uses data at buf+0 for loading SevenSixAxisSensor state. | ||
| Line 833: | Line 833: | ||
== FinalizeSevenSixAxisSensor == | == FinalizeSevenSixAxisSensor == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetSevenSixAxisSensorFusionStrength == | == SetSevenSixAxisSensorFusionStrength == | ||
Takes a PID, a float, and an u64 [[ | Takes a PID, a float, and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== GetSevenSixAxisSensorFusionStrength == | == GetSevenSixAxisSensorFusionStrength == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output float. | ||
== ResetSevenSixAxisSensorTimestamp == | == ResetSevenSixAxisSensorTimestamp == | ||
Takes a PID and an u64 [[ | Takes a PID and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== IsUsbFullKeyControllerEnabled == | == IsUsbFullKeyControllerEnabled == | ||
| Line 876: | Line 876: | ||
== GetNpadOfHighestBatteryLevel == | == GetNpadOfHighestBatteryLevel == | ||
Takes a PID, a type-0x9 input buffer containing an array of u32 [[#NpadIdType]], an u64 [[ | Takes a PID, a type-0x9 input buffer containing an array of u32 [[#NpadIdType]], an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u32 [[#NpadIdType]]. | ||
[[#NpadIdType|Handheld]] is ignored. | [[#NpadIdType|Handheld]] is ignored. | ||
== GetPalmaConnectionHandle == | == GetPalmaConnectionHandle == | ||
Takes a PID, an u32 [[#NpadIdType]], an [[ | Takes a PID, an u32 [[#NpadIdType]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output [[#PalmaConnectionHandle]]. | ||
== InitializePalma == | == InitializePalma == | ||
| Line 1,005: | Line 1,005: | ||
== SetIsPalmaAllConnectable == | == SetIsPalmaAllConnectable == | ||
Takes a PID, a bool, an [[ | Takes a PID, a bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
The sysmodule also calls the code which eventually runs from this, from various other funcs internally (bool value varies). | The sysmodule also calls the code which eventually runs from this, from various other funcs internally (bool value varies). | ||
| Line 1,012: | Line 1,012: | ||
== SetIsPalmaPairedConnectable == | == SetIsPalmaPairedConnectable == | ||
Takes a PID, a bool, an [[ | Takes a PID, a bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
The actual cmd impl ignores the PID/AppletResourceUserId. | The actual cmd impl ignores the PID/AppletResourceUserId. | ||
| Line 1,034: | Line 1,034: | ||
== EnablePalmaBoostMode == | == EnablePalmaBoostMode == | ||
Takes a PID, a bool, an [[ | Takes a PID, a bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== GetPalmaBluetoothAddress == | == GetPalmaBluetoothAddress == | ||
| Line 1,040: | Line 1,040: | ||
== SetDisallowedPalmaConnection == | == SetDisallowedPalmaConnection == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a type-0x9 input buffer containing an array of [[Bluetooth_Driver_services#Address|Address]], no output. | ||
== GetGlGrButtonConfigState == | == GetGlGrButtonConfigState == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an u32, an [[ | Takes a PID, an u32, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns two output bools. | ||
== SetNpadCommunicationMode == | == SetNpadCommunicationMode == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a s64 [[#NpadCommunicationMode]], no output. | ||
[2.0.0+] Stubbed, just returns 0. | [2.0.0+] Stubbed, just returns 0. | ||
| Line 1,060: | Line 1,060: | ||
== SetTouchScreenConfiguration == | == SetTouchScreenConfiguration == | ||
Takes a PID, a [[#TouchScreenConfigurationForNx]], an [[ | Takes a PID, a [[#TouchScreenConfigurationForNx]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== IsFirmwareUpdateNeededForNotification == | == IsFirmwareUpdateNeededForNotification == | ||
Takes a PID, a s32, an [[ | Takes a PID, a s32, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
sdknso passes hard-coded value 1 for the s32. | sdknso passes hard-coded value 1 for the s32. | ||
== SetTouchScreenOutputRanges == | == SetTouchScreenOutputRanges == | ||
Takes a PID, a s32 width, a s32 height, an [[ | Takes a PID, a s32 width, a s32 height, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This is used by user-processes prior to [[#ActivateTouchScreen|ActivateTouchScreen]], on newer versions. | This is used by user-processes prior to [[#ActivateTouchScreen|ActivateTouchScreen]], on newer versions. | ||
| Line 1,075: | Line 1,075: | ||
== ActivateDigitizer == | == ActivateDigitizer == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== InitializeJcms == | == InitializeJcms == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a TransferMemory handle, an [[ | Takes a PID, a TransferMemory handle, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], an u64 tmem_size, no output. | ||
The input TransferMemory is created with permissions = R--. The user-process later reads from the buffer used with this to get the JcmsState for the specified [[#JcmsHandle|JcmsHandle]]. | The input TransferMemory is created with permissions = R--. The user-process later reads from the buffer used with this to get the JcmsState for the specified [[#JcmsHandle|JcmsHandle]]. | ||
| Line 1,087: | Line 1,087: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== StartJcms == | == StartJcms == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a [[#JcmsHandle|JcmsHandle]], an [[ | Takes a PID, a [[#JcmsHandle|JcmsHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== StopJcms == | == StopJcms == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a [[#JcmsHandle|JcmsHandle]], an [[ | Takes a PID, a [[#JcmsHandle|JcmsHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== InitializeNmouse == | == InitializeNmouse == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a TransferMemory handle, an u8, two s32s (width/height), an [[ | Takes a PID, a TransferMemory handle, an u8, two s32s (width/height), an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], an u64 tmem_size, no output. | ||
Official sw converts the input [[#NmouseStateRange|NmouseStateRange]] to the relevant s32s (the s32s are not directly exposed). | Official sw converts the input [[#NmouseStateRange|NmouseStateRange]] to the relevant s32s (the s32s are not directly exposed). | ||
| Line 1,115: | Line 1,115: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetNmousePointerRanges == | == SetNmousePointerRanges == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, two s32s (width/height), an [[ | Takes a PID, two s32s (width/height), an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This is also exposed as SetNmouseStateRanges, with the input [[#NmouseStateRange|NmouseStateRange]] being converted to the relevant s32s. | This is also exposed as SetNmouseStateRanges, with the input [[#NmouseStateRange|NmouseStateRange]] being converted to the relevant s32s. | ||
| Line 1,127: | Line 1,127: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns two output s32s (width/height). | ||
This is also exposed as GetNmouseStateRanges, with the output data being compared to determine the output [[#NmouseStateRange|NmouseStateRange]]. | This is also exposed as GetNmouseStateRanges, with the output data being compared to determine the output [[#NmouseStateRange|NmouseStateRange]]. | ||
| Line 1,134: | Line 1,134: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a bool, an [[ | Takes a PID, a bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== SetNmouseButtonConfigJoyLeftJcms == | == SetNmouseButtonConfigJoyLeftJcms == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#NmouseButtonConfigJoyLeftJcms|NmouseButtonConfigJoyLeftJcms]], no output. | ||
== SetNmouseButtonConfigJoyRightJcms == | == SetNmouseButtonConfigJoyRightJcms == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#NmouseButtonConfigJoyRightJcms|NmouseButtonConfigJoyRightJcms]], no output. | ||
== SetMergedNmouseSourceTypes == | == SetMergedNmouseSourceTypes == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, an u32, an [[ | Takes a PID, an u32, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Official sw masks the u32 with bitmask 0x6. | Official sw masks the u32 with bitmask 0x6. | ||
| Line 1,160: | Line 1,160: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a TransferMemory handle, a [[#NmousePointerType|NmousePointerType]], a s32 width, a s32 height, an u32, an [[ | Takes a PID, a TransferMemory handle, a [[#NmousePointerType|NmousePointerType]], a s32 width, a s32 height, an u32, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], an u64 tmem_size, no output. | ||
The input TransferMemory is created with permissions = R--. The user-process later reads from the buffer used with this (same as with [[#InitializeNmouse|InitializeNmouse]]). | The input TransferMemory is created with permissions = R--. The user-process later reads from the buffer used with this (same as with [[#InitializeNmouse|InitializeNmouse]]). | ||
| Line 1,171: | Line 1,171: | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, two s32s, an [[ | Takes a PID, two s32s, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#NmouseHandle|NmouseHandle]], no output. | ||
== EnableNmousePointer == | == EnableNmousePointer == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, a bool, an [[ | Takes a PID, a bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#NmouseHandle|NmouseHandle]], no output. | ||
== RestrictNmousePointer == | == RestrictNmousePointer == | ||
This is exclusive to S2. | This is exclusive to S2. | ||
Takes a PID, 4 floats, an [[ | Takes a PID, 4 floats, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== Cmd3143 == | == Cmd3143 == | ||
| Line 1,622: | Line 1,622: | ||
== DeactivateNpad == | == DeactivateNpad == | ||
Takes a PID and an [[ | Takes a PID and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This just returns 0. | This just returns 0. | ||
| Line 1,972: | Line 1,972: | ||
| 502 || [[#UnregisterAppletResourceUserId]] | | 502 || [[#UnregisterAppletResourceUserId]] | ||
|- | |- | ||
| 503 || EnableAppletToGetInput | | 503 || [[#EnableAppletToGetInput]] | ||
|- | |- | ||
| 504 || SetAruidValidForVibration | | 504 || [[#SetAruidValidForVibration]] | ||
|- | |- | ||
| 505 || EnableAppletToGetSixAxisSensor | | 505 || [[#EnableAppletToGetSixAxisSensor]] | ||
|- | |- | ||
| 506 || [14.0.0+] EnableAppletToGetPadInput | | 506 || [14.0.0+] [[#EnableAppletToGetPadInput]] | ||
|- | |- | ||
| 507 || [14.0.0+] EnableAppletToGetTouchScreen | | 507 || [14.0.0+] [[#EnableAppletToGetTouchScreen]] | ||
|- | |- | ||
| 510 || [[#SetVibrationMasterVolume]] | | 510 || [[#SetVibrationMasterVolume]] | ||
| Line 2,487: | Line 2,487: | ||
== AcquireHomeButtonEventHandle == | == AcquireHomeButtonEventHandle == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output Event handle. | ||
The EventClearMode used by sdknso is user-specified. The Event is signaled when [[#HomeButtonState]] is updated. | The EventClearMode used by sdknso is user-specified. The Event is signaled when [[#HomeButtonState]] is updated. | ||
| Line 2,494: | Line 2,494: | ||
== ActivateHomeButton == | == ActivateHomeButton == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Activates the [[#HomeButtonSharedMemoryFormat|HomeButton]] sharedmem. | Activates the [[#HomeButtonSharedMemoryFormat|HomeButton]] sharedmem. | ||
== AcquireSleepButtonEventHandle == | == AcquireSleepButtonEventHandle == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output Event handle. | ||
The EventClearMode used by sdknso is user-specified. The Event is signaled when [[#SleepButtonState]] is updated. | The EventClearMode used by sdknso is user-specified. The Event is signaled when [[#SleepButtonState]] is updated. | ||
| Line 2,506: | Line 2,506: | ||
== ActivateSleepButton == | == ActivateSleepButton == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Activates the [[#SleepButtonSharedMemoryFormat|SleepButton]] sharedmem. | Activates the [[#SleepButtonSharedMemoryFormat|SleepButton]] sharedmem. | ||
== AcquireCaptureButtonEventHandle == | == AcquireCaptureButtonEventHandle == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output Event handle. | ||
The EventClearMode used by sdknso is user-specified. The Event is signaled when [[#CaptureButtonState]] is updated. | The EventClearMode used by sdknso is user-specified. The Event is signaled when [[#CaptureButtonState]] is updated. | ||
| Line 2,518: | Line 2,518: | ||
== ActivateCaptureButton == | == ActivateCaptureButton == | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Activates the [[#CaptureButtonSharedMemoryFormat|CaptureButton]] sharedmem. | Activates the [[#CaptureButtonSharedMemoryFormat|CaptureButton]] sharedmem. | ||
| Line 2,533: | Line 2,533: | ||
== SetAppletResourceUserId == | == SetAppletResourceUserId == | ||
Takes an [[Applet_Manager_services|AppletResourceUserId]], no output. | Takes an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
Passing | Passing 0 instead of [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]] results in process being tied to currently focused applet. | ||
== RegisterAppletResourceUserId == | == RegisterAppletResourceUserId == | ||
Takes an input bool, an [[Applet_Manager_services|AppletResourceUserId]], no output. | Takes an input bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
If input bool is '''true''', inlined [[#SetAppletResourceUserId]] is executed. | If input bool is '''true''', inlined [[#SetAppletResourceUserId]] is executed after successful registration. | ||
[20.4.0+] Takes an input bool, an u8 [[Applet_Manager_services|ApplicationSpec]], an [[Applet_Manager_services|AppletResourceUserId]], no output. | [20.4.0+] Takes an input bool, an u8 [[Applet_Manager_services|ApplicationSpec]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== UnregisterAppletResourceUserId == | == UnregisterAppletResourceUserId == | ||
Takes an [[Applet_Manager_services|AppletResourceUserId]], no output. | Takes an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== EnableAppletToGetInput == | |||
Takes an input bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | |||
== SetAruidValidForVibration == | |||
Takes an input bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | |||
== EnableAppletToGetSixAxisSensor == | |||
Takes an input bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | |||
== EnableAppletToGetPadInput == | |||
Takes an input bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | |||
== EnableAppletToGetTouchScreen == | |||
Takes an input bool, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | |||
== SetVibrationMasterVolume == | == SetVibrationMasterVolume == | ||
| Line 2,698: | Line 2,711: | ||
== IsFirmwareAvailableForNotification == | == IsFirmwareAvailableForNotification == | ||
Takes a PID, a s32, an [[#UniquePadId]], an [[ | Takes a PID, a s32, an [[#UniquePadId]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output bool. | ||
sdknso uses hard-coded value 1 for the s32. | sdknso uses hard-coded value 1 for the s32. | ||
| Line 2,963: | Line 2,976: | ||
This is likely SetSelectorUiPresentationPolicy? | This is likely SetSelectorUiPresentationPolicy? | ||
Takes a PID, an u8 SelectorUiPresentationPolicy, an [[ | Takes a PID, an u8 SelectorUiPresentationPolicy, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
== Cmd1471 == | == Cmd1471 == | ||
| Line 2,970: | Line 2,983: | ||
This is likely GetSelectorUiPresentationPolicy? | This is likely GetSelectorUiPresentationPolicy? | ||
Takes a PID, an [[ | Takes a PID, an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 SelectorUiPresentationPolicy. | ||
== IHidbusSystemServer == | == IHidbusSystemServer == | ||
| Line 2,990: | Line 3,003: | ||
== SetAppletResourceUserId == | == SetAppletResourceUserId == | ||
Takes an [[ | Takes an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This function is called by [[AM_services|Applet Manager services]] after hid:sys [[#SetAppletResourceUserId|SetAppletResourceUserId]]. | |||
== RegisterAppletResourceUserId == | == RegisterAppletResourceUserId == | ||
Takes an u8 [[Applet_Manager_services#AppletId|AppletId]], an [[ | Takes an u8 [[Applet_Manager_services#AppletId|AppletId]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This function is called by [[AM_services|Applet Manager services]] after hid:sys [[#RegisterAppletResourceUserId|RegisterAppletResourceUserId]]. | |||
== UnregisterAppletResourceUserId == | == UnregisterAppletResourceUserId == | ||
Takes an [[ | Takes an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | ||
This function is called by [[AM_services|Applet Manager services]] before hid:sys [[#UnregisterAppletResourceUserId|UnregisterAppletResourceUserId]]. | |||
= hid:tmp = | = hid:tmp = | ||
| Line 3,061: | Line 3,080: | ||
== ActivateIrsensor == | == ActivateIrsensor == | ||
Takes a PID-descriptor and an [[ | Takes a PID-descriptor and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== DeactivateIrsensor == | == DeactivateIrsensor == | ||
Takes a PID-descriptor and an [[ | Takes a PID-descriptor and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== GetIrsensorSharedMemoryHandle == | == GetIrsensorSharedMemoryHandle == | ||
Takes a PID-descriptor and an [[ | Takes a PID-descriptor and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns a SharedMemory handle. | ||
The SharedMemory is "nn::irsensor::detail::StatusManager". It's mapped with permission read-only and size 0x8000. | The SharedMemory is "nn::irsensor::detail::StatusManager". It's mapped with permission read-only and size 0x8000. | ||
| Line 3,415: | Line 3,434: | ||
== StopImageProcessor == | == StopImageProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== RunMomentProcessor == | == RunMomentProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and a [[#PackedMomentProcessorConfig]]. No output. | ||
== RunClusteringProcessor == | == RunClusteringProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], and a [[#PackedClusteringProcessorConfig]]. No output. | ||
== RunImageTransferProcessor == | == RunImageTransferProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#PackedImageTransferProcessorConfig]], an u64 for the TransferMemory's size, and a TransferMemory handle. No output. | ||
The TransferMemory is created with an user specified buffer and permission none. | The TransferMemory is created with an user specified buffer and permission none. | ||
== GetImageTransferProcessorState == | == GetImageTransferProcessorState == | ||
Takes a PID-descriptor, a type-0x6 output buffer, an [[#IrCameraHandle]], and an [[ | Takes a PID-descriptor, a type-0x6 output buffer, an [[#IrCameraHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an [[#ImageTransferProcessorState]]. No output. | ||
== RunTeraPluginProcessor== | == RunTeraPluginProcessor== | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedTeraPluginProcessorConfig]] (immediately after the previous word), and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedTeraPluginProcessorConfig]] (immediately after the previous word), and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== GetNpadIrCameraHandle == | == GetNpadIrCameraHandle == | ||
| Line 3,438: | Line 3,457: | ||
== RunPointingProcessor == | == RunPointingProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedPointingProcessorConfig]] (immediately after the previous word), and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedPointingProcessorConfig]] (immediately after the previous word), and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== SuspendImageProcessor == | == SuspendImageProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
sdknso uses this from the Run*Processor funcs to suspend the current Processor when the current [[#PackedFunctionLevel|FunctionLevel]] is >= 0x1, prior to starting another Processor if needed (depending on what Processor was already active via a state field). Hence, this cmd is only used with [4.0.0+]. | sdknso uses this from the Run*Processor funcs to suspend the current Processor when the current [[#PackedFunctionLevel|FunctionLevel]] is >= 0x1, prior to starting another Processor if needed (depending on what Processor was already active via a state field). Hence, this cmd is only used with [4.0.0+]. | ||
== CheckFirmwareVersion == | == CheckFirmwareVersion == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedMcuVersion]], and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedMcuVersion]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
sdknso didn't actually use this until 4.x (the RequiredMcuVersion was also updated with that version). | sdknso didn't actually use this until 4.x (the RequiredMcuVersion was also updated with that version). | ||
== SetFunctionLevel == | == SetFunctionLevel == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedFunctionLevel]], and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedFunctionLevel]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== RunImageTransferExProcessor == | == RunImageTransferExProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], a [[#PackedImageTransferProcessorExConfig]], an u64 for the TransferMemory's size, and a TransferMemory handle. No output. | ||
The TransferMemory is created with an user specified buffer and permission none. | The TransferMemory is created with an user specified buffer and permission none. | ||
== RunIrLedProcessor == | == RunIrLedProcessor == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedIrLedProcessorConfig]] (immediately after the previous word), and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], a [[#PackedIrLedProcessorConfig]] (immediately after the previous word), and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== StopImageProcessorAsync == | == StopImageProcessorAsync == | ||
Takes a PID-descriptor, an [[#IrCameraHandle]], and an [[ | Takes a PID-descriptor, an [[#IrCameraHandle]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== ActivateIrsensorWithFunctionLevel == | == ActivateIrsensorWithFunctionLevel == | ||
Takes a PID-descriptor, an [[#PackedFunctionLevel]], and an [[ | Takes a PID-descriptor, an [[#PackedFunctionLevel]], and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
= irs:sys = | = irs:sys = | ||
| Line 3,480: | Line 3,499: | ||
| 502 || [[#UnregisterAppletResourceUserId_3|#UnregisterAppletResourceUserId]] | | 502 || [[#UnregisterAppletResourceUserId_3|#UnregisterAppletResourceUserId]] | ||
|- | |- | ||
| 503 || [[#EnableAppletToGetInput]] | | 503 || [[#EnableAppletToGetInput_2|#EnableAppletToGetInput]] | ||
|} | |} | ||
== SetAppletResourceUserId == | == SetAppletResourceUserId == | ||
Takes an [[ | Takes an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== RegisterAppletResourceUserId == | == RegisterAppletResourceUserId == | ||
Takes a bool and an [[ | Takes a bool and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== UnregisterAppletResourceUserId == | == UnregisterAppletResourceUserId == | ||
Takes an [[ | Takes an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== EnableAppletToGetInput == | == EnableAppletToGetInput == | ||
Takes a bool and an [[ | Takes a bool and an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
= ahid:cd = | = ahid:cd = | ||
| Line 3,758: | Line 3,777: | ||
== GetBusHandle == | == GetBusHandle == | ||
Takes an input u32 [[#NpadIdType]], an u64 [[#BusType]] and an u64 [[ | Takes an input u32 [[#NpadIdType]], an u64 [[#BusType]] and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. Returns an output bool '''HasHandle''' and a [[#BusHandle]]. | ||
'''HasHandle''' indicates whether the [[#BusHandle]] is valid. | '''HasHandle''' indicates whether the [[#BusHandle]] is valid. | ||
| Line 3,772: | Line 3,791: | ||
== Initialize == | == Initialize == | ||
Takes an input [[#BusHandle]] and an u64 [[ | Takes an input [[#BusHandle]] and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
Prior to using this cmd, sdknso handles [[#GetSharedMemoryHandle|sharedmem]] mapping if not done previously. | Prior to using this cmd, sdknso handles [[#GetSharedMemoryHandle|sharedmem]] mapping if not done previously. | ||
== Finalize == | == Finalize == | ||
Takes an input [[#BusHandle]] and an u64 [[ | Takes an input [[#BusHandle]] and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
== EnableExternalDevice == | == EnableExternalDevice == | ||
Takes an input bool '''IsEnabled''', a [[#BusHandle]], an u64 '''Version''' and an u64 [[ | Takes an input bool '''IsEnabled''', a [[#BusHandle]], an u64 '''Version''' and an u64 [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]]. No output. | ||
sdknso passes value 0x38900050018 (0x3A600050018 with 7.x+) for '''Version'''. | sdknso passes value 0x38900050018 (0x3A600050018 with 7.x+) for '''Version'''. | ||