HID services: Difference between revisions
(2 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
| 69 || EnableSixAxisSensorFusion | | 69 || EnableSixAxisSensorFusion | ||
|- | |- | ||
| 70 || SetSixAxisSensorFusionParameters | | 70 || [[#SetSixAxisSensorFusionParameters]] | ||
|- | |- | ||
| 71 || GetSixAxisSensorFusionParameters | | 71 || [[#GetSixAxisSensorFusionParameters]] | ||
|- | |- | ||
| 72 || ResetSixAxisSensorFusionParameters | | 72 || [[#ResetSixAxisSensorFusionParameters]] | ||
|- | |- | ||
| 73 || SetAccelerometerParameters | | 73 || SetAccelerometerParameters | ||
Line 72: | Line 72: | ||
| 78 || ResetAccelerometerPlayMode | | 78 || ResetAccelerometerPlayMode | ||
|- | |- | ||
| 79 || SetGyroscopeZeroDriftMode | | 79 || [[#SetGyroscopeZeroDriftMode]] | ||
|- | |- | ||
| 80 || GetGyroscopeZeroDriftMode | | 80 || [[#GetGyroscopeZeroDriftMode]] | ||
|- | |- | ||
| 81 || ResetGyroscopeZeroDriftMode | | 81 || [[#ResetGyroscopeZeroDriftMode]] | ||
|- | |- | ||
| 82 || IsSixAxisSensorAtRest | | 82 || IsSixAxisSensorAtRest | ||
Line 271: | Line 271: | ||
== CreateAppletResource == | == CreateAppletResource == | ||
Takes a PID and an u64 [[AM_services|AppletResourceUserId]]. Returns an [[#IAppletResource]]. | Takes a PID and an u64 [[AM_services|AppletResourceUserId]]. Returns an [[#IAppletResource]]. | ||
== SetSixAxisSensorFusionParameters == | |||
Takes a PID-descriptor, an u32 SixAxisSensorHandle, two floats, and an u64 [[AM_services|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. | |||
== GetSixAxisSensorFusionParameters == | |||
Takes a PID-descriptor, an u32 SixAxisSensorHandle, and an u64 [[AM_services|AppletResourceUserId]], returns two output floats. | |||
== ResetSixAxisSensorFusionParameters == | |||
Takes a PID-descriptor, an u32 SixAxisSensorHandle, and an u64 [[AM_services|AppletResourceUserId]], no output. | |||
== SetGyroscopeZeroDriftMode == | |||
Takes a PID-descriptor, an u32 "nn::hid::SixAxisSensorHandle", an u32, and an u64 [[AM_services|AppletResourceUserId]], no output. | |||
Official sw loads the input u32 from "nn::hid::GyroscopeZeroDriftMode". | |||
== GetGyroscopeZeroDriftMode == | |||
Takes a PID-descriptor, an u32 "nn::hid::SixAxisSensorHandle", and an u64 [[AM_services|AppletResourceUserId]], returns an output u32. | |||
Gets the value written by [[#SetGyroscopeZeroDriftMode]]. | |||
== ResetGyroscopeZeroDriftMode == | |||
Takes a PID-descriptor, an u32 "nn::hid::SixAxisSensorHandle", and an u64 [[AM_services|AppletResourceUserId]], no output. | |||
Same as [[#SetGyroscopeZeroDriftMode]] except the written mode is hard-coded value 1. | |||
== SetSupportedNpadStyleSet == | == SetSupportedNpadStyleSet == | ||
Line 362: | Line 388: | ||
Takes a PID and an u64 [[AM_services|AppletResourceUserId]], no output. | Takes a PID and an u64 [[AM_services|AppletResourceUserId]], no output. | ||
Unused by official sw, [[#ActivateConsoleSixAxisSensor]] is used instead. However, internally ActivateSevenSixAxisSensor is identical to [[#ActivateConsoleSixAxisSensor]]. Deactivation is done with hiddbg DeactivateConsoleSixAxisSensor. | 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 == |