Skip to main content

Crate dualsense_tools

Crate dualsense_tools 

Source

Modules§

control_ids
state
virtual_controller

Structs§

Dualsense
Interface used to interact with a Dualsense controller; encapsulates a hidapi::HidDevice and a buffer to be re-used when reading input reports from the hid device.
DualsenseStatesBuffer
Radians
Represents a value in radians
StateEvent
Tilt
Describe the tilt of a controller, i.e. its orientation in terms of roll (rotation around the Z axis) and pitch (rotation around the X axis).
TiltEstimates
Represents current estimates on the tilt status of a controller
TiltEstimator
Estimates Tilt given sample readings; it keeps state pertaining the previous readings and estimates to implement an algorighm similar to the one described here
TiltEstimatorConfig
Configuration for a crate::TiltEstimator; the SAMPLES constant will determine how big a buffer of accelerometer readings to keep in order to compute the accelerometer’s average over time.
Timestamped

Constants§

PRODUCT_ID
Dualsense HID device product identifier
SENSORS_MAX
Maximum reading returned by accelerometer and gyro
SENSORS_MIN
Minimum reading returned by accelerometer and gyro
SENSORS_RANGE
Range of possible reading returned by accelerometer and gyro
VENDOR_ID
Dualsense HID device vendor identifier