Skip to content

Conversation

felixthacker
Copy link

Some MMO mouse devices feature a large number of additional buttons. The Mad Catz MMO TE for example has 20 total mouse buttons, generating event codes from 272-292. Some of these event codes (279-288) have undefined event names. When using 'bindcode' to attempt to bind these events to actions, Sway currently attempts to validate that the corresponding event has a name beginning with 'BTN_'. This change removes that validation check.

I'm not certain this is the right way to solve this problem for these mouse devices, but I've confirmed that this change allows buttons with undefined event names to be bound with 'bindcode' and I can't see anything else that might be affected by this change.

Some MMO mouse devices feature a large number of additional buttons.  The Mad Catz MMO TE for example has 20 total mouse buttons, generating event codes from 272-292.  Some of these event codes (279-288) have undefined event names.  When using 'bindcode' to attempt to bind these events to actions, Sway currently attempts to validate that the corresponding event has a name beginning with 'BTN_'.  This change removes that validation check.

I'm not certain this is the right way to solve this problem for these mouse devices, but I've confirmed that this change allows buttons with undefined event names to be bound with 'bindcode' and I can't see anything else that might be affected by this change.
@felixthacker felixthacker changed the title Remove mouse butten event name validation Remove mouse button event name validation May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant