Skip to content

Conversation

dmccombs
Copy link

Overview

This is an initial attempt to add middle mouse button emulation for 1756, but it has some issues that I'm hoping for suggestions to correct, as I'm not sure if I'm making mistakes due to lack of experience with rust and cosmic, or there's some underlying issue going on that I'm not understanding.

The middle_button_emulation setting already exists on the cosmic-comp side, and just needs the ability to set it via cosmic-settings, this PR adds that support.

Known issues

  1. Currently, when enabling middle mouse emulation in cosmic-settings with this branch, the setting is set correctly in the configuration file (~/.config/cosmic/com.system76.CosmicComp/v1/input_default), but the mouse is then unable to click with either the left or right mouse buttons. Unplugging the mouse's USB dongle and re-inserting it allows it to work again, with middle mouse button emulation working, but I'm not sure why mouse buttons become unresponsive when setting it initally.

  2. I've also tried to add this for touchpads, though my touch pad does not have buttons itself, and this setting can't be enabled at all, the toggle doesn't change in cosmic-settings. I'm not sure if it's because my touchpad is missing buttons, or if I've done something wrong in the code. I'd appreciate someone to give some insight or test with a touchpad with physical buttons.

  3. I haven't added English placeholder text to other i18n languages. Is there a simple way to copy it around, or to add translations?

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.

1 participant