Giter Site home page Giter Site logo

Comments (6)

sakithb avatar sakithb commented on June 21, 2024

I don't have any issue with adding support for additional mouse buttons. If you can create a pull request with the above changes, that would be helpful.

from media-controls.

snoopcatt avatar snoopcatt commented on June 21, 2024

There are two problems with that:

  • I have no idea which files I have to change in original source code, because I'm on Debian Stable with GNOME 43, and master branch written in TypeScript with no mentions of mouseActionTypes or mouseActionLabels
  • I have no idea are the extra mouse buttons always BUTTON8 and BUTTON9 as on my Logitech Master and not, for example, BUTTON6 and BUTTON7.

from media-controls.

ChrisLauinger77 avatar ChrisLauinger77 commented on June 21, 2024

We do not maintain the version below GNOME 45 any more. The code changed significantly with GNOME 45 and then the extension was rewritten in typescript.

from media-controls.

ChrisLauinger77 avatar ChrisLauinger77 commented on June 21, 2024

It is not really much work to add this IMHO but where to stop ?
My mouse has 5 buttons. The requesters has 9.
Currenty we support 3 buttons - left middle and right. In my opinion its enough.
There will be for sure somebody who has 11 buttons or more.
Not really a often requested feature.
@sakithb What do you think - add button 4-9 or leave it alone ?

from media-controls.

snoopcatt avatar snoopcatt commented on June 21, 2024

@ChrisLauinger77 not so - my mouse has two extra buttons, but its codes are 0x08 and 0x09.
My mouse is Logitech MX Master.

What I tried to say that I am not sure that every mouse with two extra buttons has the 0x08 and 0x09 codes and not, for example, 0x06 and 0x07.

For me personally the two extra buttons was the one feature which I was missing because there was nowhere to bind "Next" and "Prev".
It could be solved by "double left" and "double right" clicks but that's not cool :)
Screenshot from 2024-05-20 14-38-46

By the way, I can't contribute to new version because I'm user of Debian Stable and can not into new GNOME :)

from media-controls.

ChrisLauinger77 avatar ChrisLauinger77 commented on June 21, 2024

@snoopcatt You will get newer GNOME when debian stable updates next year.
Until then you have your solution - we will not update the old version of the extension as said before.
In the new code we would need the Clutter button representation
https://github.com/sakithb/media-controls/blob/eeb83ab018924850d22a444de6b457f119a075e4/src/helpers/shell/PanelButton.ts#L890C1-L900C18

from media-controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.