On this page
output.set_accel
Overrides accelerometer x/y/z for this packet and marks DualSense motion capability.
Syntax
Atlas Script
output.set_accel(x, y, z)Parameters
x- Horizontal component or X coordinate for the requested operation.
y- Vertical component or Y coordinate for the requested operation.
z- Depth or Z component for the requested operation.
Return value
See the remarks for the returned value and runtime behavior.
Remarks
Overrides accelerometer x/y/z for this packet and marks DualSense motion capability. The selected output path must support motion.
Examples
Usage pattern
// Replace x, y, z with values described above.
output.set_accel(x, y, z);