[PR #339] [CLOSED] WIP: MacOS input consistency, request for comment #381

Closed
opened 2026-05-05 22:17:58 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feschber/lan-mouse/pull/339
Author: @NeoTheFox
Created: 10/29/2025
Status: Closed

Base: mainHead: osx-tweaks


📝 Commits (2)

  • a21f8a7 WIP: MacOS input consistency
  • dd1d8c3 implemented mouse config

📊 Changes

9 files changed (+149 additions, -40 deletions)

View changed files

📝 config.toml (+6 -1)
📝 input-emulation/Cargo.toml (+28 -26)
📝 input-emulation/src/lib.rs (+58 -5)
📝 lan-mouse-ipc/Cargo.toml (+3 -0)
📝 lan-mouse-ipc/src/lib.rs (+6 -1)
📝 src/config.rs (+19 -0)
📝 src/emulation.rs (+17 -4)
📝 src/emulation_test.rs (+3 -2)
📝 src/service.rs (+9 -1)

📄 Description

Hello!
I noticed a huge input inconsistency when going from Sway -> MacOS:

  1. The inverted scrolling (despite natural scrolling being disabled in MacOS)
  2. Mouse sensitivity being extremely low (despite both systems using the exact same resolution)

I'm not a Rust developer, so I don't know what would be the best way to approach it - these are just tiny changes that made my systems feel consistent.
Ideally, the issue is somehow related to DPI and reading the system config, but I propose adding two new config options:

  1. mouse_mod - a float value that the actual relative movement gets multiplied by on a given client
  2. invert_scroll - a simple flag that inverts the scrolling direction so that you can make it consistent across platforms.

Right now the input-emulation is split away from the config, so I couldn't figure out a way to add these options without excessive coupling. Any comments are welcome.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feschber/lan-mouse/pull/339 **Author:** [@NeoTheFox](https://github.com/NeoTheFox) **Created:** 10/29/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `osx-tweaks` --- ### 📝 Commits (2) - [`a21f8a7`](https://github.com/feschber/lan-mouse/commit/a21f8a79132e180591c2564babf25fb0a6b8101c) WIP: MacOS input consistency - [`dd1d8c3`](https://github.com/feschber/lan-mouse/commit/dd1d8c3211cddae29b6e0f5417431ecd17538233) implemented mouse config ### 📊 Changes **9 files changed** (+149 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `config.toml` (+6 -1) 📝 `input-emulation/Cargo.toml` (+28 -26) 📝 `input-emulation/src/lib.rs` (+58 -5) 📝 `lan-mouse-ipc/Cargo.toml` (+3 -0) 📝 `lan-mouse-ipc/src/lib.rs` (+6 -1) 📝 `src/config.rs` (+19 -0) 📝 `src/emulation.rs` (+17 -4) 📝 `src/emulation_test.rs` (+3 -2) 📝 `src/service.rs` (+9 -1) </details> ### 📄 Description Hello! I noticed a huge input inconsistency when going from Sway -> MacOS: 1) The inverted scrolling (despite natural scrolling being disabled in MacOS) 2) Mouse sensitivity being extremely low (despite both systems using the exact same resolution) I'm not a Rust developer, so I don't know what would be the best way to approach it - these are just tiny changes that made my systems feel consistent. Ideally, the issue is somehow related to DPI and reading the system config, but I propose adding two new config options: 1) mouse_mod - a float value that the actual relative movement gets multiplied by on a given client 2) invert_scroll - a simple flag that inverts the scrolling direction so that you can make it consistent across platforms. Right now the input-emulation is split away from the config, so I couldn't figure out a way to add these options without excessive coupling. Any comments are welcome. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 22:17:58 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#381
No description provided.