0681064767
Each rumble event plays a short shape instead of one flat block: a hit starts at full strength and dies away, an explosion rolls on, a totem swells, a broken block is a tick. They drive the motors' emulation in the HID report. On USB the pad is also a four-channel audio device whose channels 3 and 4 drive its actuators: with HORIZON_DUALSENSE_HAPTICS=1 the shapes play there as waveforms (80 Hz and 200 Hz tones for the heavy and light parts), channels 1 and 2 silent, until that path is confirmed on a real pad. docs/controllers.md says what each OS and transport allows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
652 B
TOML
19 lines
652 B
TOML
[package]
|
|
name = "horizon-dualsense"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version = "1.85"
|
|
description = "The DualSense's output over HID: rumble, adaptive triggers, lightbar and player LEDs"
|
|
|
|
[dependencies]
|
|
# MIT; bundles the C hidapi under its BSD licence option. hidraw on Linux (libudev, as gilrs),
|
|
# IOKit on macOS (opened shared, so gilrs keeps reading the pad), the HID API on Windows.
|
|
hidapi = { version = "2.6.7", default-features = false, features = ["linux-static-hidraw", "macos-shared-device"] }
|
|
log = "0.4"
|
|
# HD haptics through the pad's own audio device (USB).
|
|
cpal = "0.16"
|
|
|
|
[lints]
|
|
workspace = true
|