HID services: Difference between revisions
No edit summary |
No edit summary |
||
| Line 162: | Line 162: | ||
| 300 || [3.0.0+] [[#ActivateConsoleSixAxisSensor]] | | 300 || [3.0.0+] [[#ActivateConsoleSixAxisSensor]] | ||
|- | |- | ||
| 301 || [3.0.0+] StartConsoleSixAxisSensor | | 301 || [3.0.0+] [[#StartConsoleSixAxisSensor]] | ||
|- | |- | ||
| 302 || [3.0.0+] StopConsoleSixAxisSensor | | 302 || [3.0.0+] [[#StopConsoleSixAxisSensor]] | ||
|- | |- | ||
| 303 || [5.0.0+] [[#ActivateSevenSixAxisSensor]] | | 303 || [5.0.0+] [[#ActivateSevenSixAxisSensor]] | ||
| Line 389: | Line 389: | ||
Takes a PID and an u64 [[AM_services|AppletResourceUserId]], no output. | Takes a PID and an u64 [[AM_services|AppletResourceUserId]], no output. | ||
As of [10.0.0+] sdknso no longer uses this. | As of [10.0.0+] sdknso no longer uses this with SevenSixAxisSensor. | ||
== StartConsoleSixAxisSensor == | |||
Takes a PID, a [[#ConsoleSixAxisSensorHandle]], and an [[AM_services|AppletResourceUserId]], no output. | |||
== StopConsoleSixAxisSensor == | |||
Takes a PID, a [[#ConsoleSixAxisSensorHandle]], and an [[AM_services|AppletResourceUserId]], no output. | |||
== ActivateSevenSixAxisSensor == | == ActivateSevenSixAxisSensor == | ||
| Line 490: | Line 496: | ||
=== ActivateVibrationDevice === | === ActivateVibrationDevice === | ||
Takes an input [[#VibrationDeviceHandle]]. No output. | Takes an input [[#VibrationDeviceHandle]]. No output. | ||
== ConsoleSixAxisSensorHandle == | |||
This is "nn::hid::ConsoleSixAxisSensorHandle". This is a 4-byte struct with 4-byte alignment. | |||
sdknso GetConsoleSixAxisSensorHandle always returns a handle with value 0x13. | |||
{| class="wikitable" border="1" | |||
|- | |||
! Offset || Size || Description | |||
|- | |||
| 0x0 || 0x4 || TypeValue | |||
|- | |||
| 0x0 || 0x1 || | |||
|- | |||
| 0x1 || 0x1 || | |||
|} | |||
== SixAxisSensorHandle == | == SixAxisSensorHandle == | ||