From 8b41d6c17fd6700ef9bad6408553ef0bd7d27c05 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Sun, 11 Jan 2026 12:11:25 -0600 Subject: [PATCH 1/2] chore: update gilrs dependency to version 0.11.1 and switch to maint branch --- Cargo.lock | 8 ++++---- Cargo.toml | 4 ++-- src/utils/gilrs.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4896ccf..2dab5a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -704,8 +704,8 @@ dependencies = [ [[package]] name = "gilrs" -version = "0.11.0" -source = "git+https://gitlab.com/gilrs-project/gilrs.git?branch=master#11fc4305d95326c740db20d9e54a9dffc2376306" +version = "0.11.1" +source = "git+https://gitlab.com/gilrs-project/gilrs.git?branch=maint#984c4337f090431c0ab8f59287de9b4266d14ab2" dependencies = [ "fnv", "gilrs-core", @@ -716,8 +716,8 @@ dependencies = [ [[package]] name = "gilrs-core" -version = "0.6.6" -source = "git+https://gitlab.com/gilrs-project/gilrs.git?branch=master#11fc4305d95326c740db20d9e54a9dffc2376306" +version = "0.6.7" +source = "git+https://gitlab.com/gilrs-project/gilrs.git?branch=maint#984c4337f090431c0ab8f59287de9b4266d14ab2" dependencies = [ "inotify", "js-sys", diff --git a/Cargo.toml b/Cargo.toml index 4623084..2db11eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,10 +35,10 @@ ctrlc = "3.5.1" dirs = "6.0.0" env_logger = "0.11.8" evdev = "0.13.2" -# gilrs = "0.11.0" +# gilrs = "0.11.1" # use gilrs from local path # gilrs = { path = "../gilrs/gilrs" } -gilrs = { git = "https://gitlab.com/gilrs-project/gilrs.git", branch = "master" } +gilrs = { git = "https://gitlab.com/gilrs-project/gilrs.git", branch = "maint" } libc = "0.2.180" log = "0.4.29" udev = "0.9.3" diff --git a/src/utils/gilrs.rs b/src/utils/gilrs.rs index e210010..4828879 100644 --- a/src/utils/gilrs.rs +++ b/src/utils/gilrs.rs @@ -1,6 +1,6 @@ use evdev::Device; use evdev::uinput::VirtualDevice; -use gilrs::{GamepadExt, GamepadId, Gilrs, GilrsBuilder}; +use gilrs::{GamepadId, Gilrs, GilrsBuilder, LinuxGamepadExt}; use std::collections::HashMap; use std::error::Error; use std::path::PathBuf; From 8583336df92bbeda22c5a650e0c4a1232b7e026f Mon Sep 17 00:00:00 2001 From: ruffsl Date: Sun, 11 Jan 2026 12:14:43 -0600 Subject: [PATCH 2/2] style: rename udev module as hide --- src/demux/manager.rs | 2 +- src/mux/manager.rs | 2 +- src/utils/{udev.rs => hide.rs} | 0 src/utils/mod.rs | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/utils/{udev.rs => hide.rs} (100%) diff --git a/src/demux/manager.rs b/src/demux/manager.rs index 2d93634..99aa1bf 100644 --- a/src/demux/manager.rs +++ b/src/demux/manager.rs @@ -1,7 +1,7 @@ use crate::demux::modes::DemuxModeType; use crate::demux::runtime::DemuxRuntimeSettings; use crate::utils::evdev::VirtualGamepadInfo; -use crate::utils::udev::ScopedDeviceHider; +use crate::utils::hide::ScopedDeviceHider; use crate::{DemuxRumbleTarget, HideType, SpoofTarget}; use evdev::Device; use gilrs::{GamepadId, Gilrs}; diff --git a/src/mux/manager.rs b/src/mux/manager.rs index a938b33..eba0283 100644 --- a/src/mux/manager.rs +++ b/src/mux/manager.rs @@ -1,7 +1,7 @@ use crate::mux::modes::MuxModeType; use crate::mux::runtime::RuntimeSettings; use crate::utils::evdev::VirtualGamepadInfo; -use crate::utils::udev::ScopedDeviceHider; +use crate::utils::hide::ScopedDeviceHider; use crate::{HideType, RumbleTarget, SpoofTarget}; use evdev::Device; use gilrs::{GamepadId, Gilrs}; diff --git a/src/utils/udev.rs b/src/utils/hide.rs similarity index 100% rename from src/utils/udev.rs rename to src/utils/hide.rs diff --git a/src/utils/mod.rs b/src/utils/mod.rs index efb1601..2ccc1ab 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -1,4 +1,4 @@ pub mod evdev; pub mod ff; pub mod gilrs; -pub mod udev; +pub mod hide;