mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(controller): add native 25Hz haptics on Steam Controller 2 (Ibex 0x80)
This commit is contained in:
1 parent
b81b0f54f7
commit
c8f27d32e3
7 files changed
+847
-20
No files matched your search
+28
-2
@@ -1019,6 +1019,28 @@ impl eframe::App for SteamFrameGuiApp {
|
||||
ui.label("Inverser direction :");
|
||||
ui.checkbox(&mut self.cfg.controller_invert_steering, "Inversée");
|
||||
ui.end_row();
|
||||
|
||||
ui.label("Vibrations SC (%) :");
|
||||
ui.horizontal(|ui| {
|
||||
if ui
|
||||
.add(
|
||||
egui::Slider::new(
|
||||
&mut self.cfg.controller_vibration,
|
||||
0..=100,
|
||||
)
|
||||
.suffix("%"),
|
||||
)
|
||||
.changed()
|
||||
{
|
||||
self.controls.set_controller_vibration_pct(
|
||||
self.cfg.controller_vibration,
|
||||
);
|
||||
}
|
||||
if ui.button("📳 Tester Vibrations").clicked() {
|
||||
self.controls.trigger_controller_rumble_test();
|
||||
}
|
||||
});
|
||||
ui.end_row();
|
||||
});
|
||||
|
||||
ui.add_space(6.0);
|
||||
@@ -1090,8 +1112,12 @@ impl eframe::App for SteamFrameGuiApp {
|
||||
latest_ctrl.last_button.clone()
|
||||
},
|
||||
format!(
|
||||
"$RC envoyés : {} (Err : {})",
|
||||
latest_ctrl.packets_sent, latest_ctrl.send_errors
|
||||
"Vib {}% (G:{}% D:{}%) | $RC envoyés : {} (Err : {})",
|
||||
latest_ctrl.vibration_pct,
|
||||
latest_ctrl.rumble_left_pct,
|
||||
latest_ctrl.rumble_right_pct,
|
||||
latest_ctrl.packets_sent,
|
||||
latest_ctrl.send_errors
|
||||
),
|
||||
)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user