Skip to content

Conversation

@ruffsl
Copy link
Owner

@ruffsl ruffsl commented Jan 10, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the codebase by reorganizing the flat module structure into a hierarchical structure with better organization and clearer separation of concerns.

Changes:

  • Reorganized modules into logical groups: utils (helper utilities), mux (multiplexing functionality), and demux (demultiplexing functionality)
  • Renamed helper modules to be under the utils namespace (e.g., gilrs_helperutils::gilrs, evdev_helpersutils::evdev, ff_helpersutils::ff, udev_helpersutils::udev)
  • Updated all import paths throughout the codebase to reflect the new module hierarchy

Reviewed changes

Copilot reviewed 23 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main.rs Updated module declarations and import paths; critical issue found with DemuxRumbleTarget re-export
src/utils/mod.rs New module file declaring public utility modules
src/utils/gilrs.rs Moved from gilrs_helper.rs; added pub use for GamepadId and Gilrs
src/utils/udev.rs Moved from udev_helpers.rs; updated import path
src/utils/ff.rs Moved from ff_helpers.rs; updated import path
src/utils/evdev.rs Moved from evdev_helpers.rs; contains helper functions for evdev device creation and mapping
src/mux/mod.rs New module file declaring mux submodules
src/mux/manager.rs Moved from mux_manager.rs; updated all import paths
src/mux/runtime.rs Moved from mux_runtime.rs; updated import paths and removed redundant use statement
src/mux/modes/mod.rs Moved from mux_modes.rs; declares mode implementations
src/mux/modes/helpers.rs Updated import paths to use new module structure
src/mux/modes/average.rs Updated import paths and removed unused imports
src/mux/modes/priority.rs Updated import paths and removed unused imports
src/mux/modes/toggle.rs Updated import paths and removed unused imports
src/demux/mod.rs New module file declaring demux submodules
src/demux/manager.rs Moved from demux_manager.rs; updated all import paths
src/demux/runtime.rs Moved from demux_runtime.rs; updated import paths and removed redundant use statement
src/demux/modes/mod.rs Moved from demux_modes.rs; declares mode implementations
src/demux/modes/helpers.rs Updated to re-export from new mux::modes::helpers location
src/demux/modes/multicast.rs Updated import paths
src/demux/modes/unicast.rs Updated import paths
src/tray/mod.rs Changed submodules from private to public visibility
src/tray/app.rs Updated all import paths to reflect new module structure
src/tray/config.rs Updated import paths
src/tray/state.rs Updated import paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ruffsl ruffsl marked this pull request as ready for review January 10, 2026 14:39
@ruffsl ruffsl merged commit 7506627 into main Jan 10, 2026
1 check passed
@ruffsl ruffsl deleted the refactor branch January 10, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants