DeviceHaptics task

This commit is contained in:
galister
2025-12-24 17:27:02 +09:00
parent 1d6a0e4bde
commit 10191385e4
11 changed files with 80 additions and 11 deletions
+4 -2
View File
@@ -214,15 +214,17 @@ pub async fn wvr_process_launch(
)
}
pub async fn wlx_haptics(
pub async fn wlx_device_haptics(
state: &mut WayVRClientState,
device: usize,
intensity: f32,
duration: f32,
frequency: f32,
) {
handle_empty_result(
WayVRClient::fn_wlx_haptics(
WayVRClient::fn_wlx_device_haptics(
state.wayvr_client.clone(),
device,
packet_client::WlxHapticsParams {
intensity,
duration,