mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(controller): add native Ibex HIDRAW 0x42 reader to bypass hid-steam lizard mode
This commit is contained in:
1 parent
ebe0d9889f
commit
f2a1993217
2 files changed
+370
-42
No files matched your search
+13
-8
@@ -2878,9 +2878,16 @@ impl SteamFrameGpuiApp {
|
||||
}
|
||||
|
||||
fn render_controller_monitor(&self, cx: &mut Context<Self>) -> impl IntoElement {
|
||||
let viewed_source = self
|
||||
.monitor_source_override
|
||||
.unwrap_or(self.active_control_source);
|
||||
let viewed_source = self.monitor_source_override.unwrap_or_else(|| {
|
||||
if self.active_control_source == ControlSource::G29
|
||||
&& !self.latest_g29.is_live()
|
||||
&& self.latest_controller.connected
|
||||
{
|
||||
ControlSource::SteamController
|
||||
} else {
|
||||
self.active_control_source
|
||||
}
|
||||
});
|
||||
let is_steam_view = viewed_source == ControlSource::SteamController;
|
||||
|
||||
let (
|
||||
@@ -3172,14 +3179,12 @@ impl SteamFrameGpuiApp {
|
||||
clutch_crsf,
|
||||
COLOR_CYAN,
|
||||
))
|
||||
// Pied du moniteur : dernier bouton & détails liaison
|
||||
// Pied du moniteur : dernier bouton & détails liaison (sur 2 lignes pour éviter toute troncature)
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.flex_wrap()
|
||||
.justify_between()
|
||||
.items_center()
|
||||
.gap_2()
|
||||
.flex_col()
|
||||
.gap_1()
|
||||
.pt_1()
|
||||
.border_t_1()
|
||||
.border_color(rgb(COLOR_BORDER_SUBTLE))
|
||||
|
||||
Reference in new issue
Block a user