Line 134: |
Line 134: |
| | 205 || [[#IsVibrationPermitted]] | | | 205 || [[#IsVibrationPermitted]] |
| |- | | |- |
− | | 206 || SendVibrationValues | + | | 206 || [[#SendVibrationValues]] |
| |- | | |- |
| | 300 || ActivateConsoleSixAxisSensor | | | 300 || ActivateConsoleSixAxisSensor |
Line 172: |
Line 172: |
| | | |
| == GetVibrationDeviceInfo == | | == GetVibrationDeviceInfo == |
− | Takes an u32 VibrationDeviceHandle. Returns an output [[#VibrationDeviceInfo]]. | + | Takes a [[#VibrationDeviceHandle]]. Returns an output [[#VibrationDeviceInfo]]. |
| | | |
| == SendVibrationValue == | | == SendVibrationValue == |
− | Takes a PID-descriptor, an u32 VibrationDeviceHandle, 0x10-byte VibrationValue immediately after that, and an u64 [[AM_services|AppletResourceUserId]]. | + | Takes a PID-descriptor, a [[#VibrationDeviceHandle]], a [[#VibrationValue]] immediately after that, and an u64 [[AM_services|AppletResourceUserId]]. No output. |
| | | |
| == GetActualVibrationValue == | | == GetActualVibrationValue == |
− | Takes a PID-descriptor, an u32 VibrationDeviceHandle, and an u64 [[AM_services|AppletResourceUserId]]. Returns the 0x10-byte VibrationValue. | + | Takes a PID-descriptor, a [[#VibrationDeviceHandle]], and an u64 [[AM_services|AppletResourceUserId]]. Returns an output [[#VibrationValue]]. |
| | | |
| == PermitVibration == | | == PermitVibration == |
Line 185: |
Line 185: |
| == IsVibrationPermitted == | | == IsVibrationPermitted == |
| No input. Returns an output u8 bool. | | No input. Returns an output u8 bool. |
| + | |
| + | == SendVibrationValues == |
| + | Takes an u64 [[AM_services|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. |
| + | |
| + | == VibrationDeviceHandle == |
| + | This is an u32. |
| | | |
| == VibrationDeviceInfo == | | == VibrationDeviceInfo == |
| This is a 0x8-byte struct. | | This is a 0x8-byte struct. |
| + | |
| + | == VibrationValue == |
| + | This is a 0x10-byte struct. |
| | | |
| == IAppletResource == | | == IAppletResource == |