ClassiCube icon indicating copy to clipboard operation
ClassiCube copied to clipboard

Controls cannot be bound to mouse buttons 10 and above

Open muzikbike opened this issue 3 weeks ago • 3 comments

#1186 was fixed such that mouse buttons 6, 7, 8 and 9 are allowed. However, buttons 10 and 11, and onward, still do not appear to work.

From my testing in xev (through XWayland), buttons 10, 11, 12, 13, 14, 15 and 16 are recognised as buttons 14, 15, 16, 17, 18, 19 and 20 (since the four scroll directions offset things by 4).

Mouse setup for testing (you need to use CLI to assign above 11 for this specific device): Image

When trying to bind buttons 10 and onward in-game it gives no reaction, as though no button was pressed at all. There are "Unknown mouse button:" outputs in the log corresponding to the exact values xev provides. Image

muzikbike avatar Dec 01 '25 14:12 muzikbike

Are you able to define as many arbitrary mouse buttons as you want?

This could be tricky to support as the input system currently assumes a hardcoded limit on the maximum number of extra mouse buttons

On Tue., 2 Dec. 2025, 1:06 am muzikbike, @.***> wrote:

muzikbike created an issue (ClassiCube/ClassiCube#1467) https://github.com/ClassiCube/ClassiCube/issues/1467

#1186 https://github.com/ClassiCube/ClassiCube/issues/1186 was fixed such that mouse buttons 6, 7, 8 and 9 are allowed. However, buttons 10 and 11, and onward, still do not appear to work.

From my testing in xev (through XWayland), buttons 10, 11, 12, 13, 14, 15 and 16 are recognised as buttons 14, 15, 16, 17, 18, 19 and 20 (since the four scroll directions offset things by 4).

Mouse setup for testing (you need to use CLI to assign above 11 for this specific device): image.png (view on web) https://github.com/user-attachments/assets/f0a38fac-cc88-421c-9a77-bd6a7918e9a6

When trying to bind buttons 10 and onward in-game it gives no reaction, as though no button was pressed at all. There are "Unknown mouse button:" outputs in the log corresponding to the exact values xev provides. image.png (view on web) https://github.com/user-attachments/assets/80d6e7d4-28b1-48cb-9a01-d4e06bd7d354

— Reply to this email directly, view it on GitHub https://github.com/ClassiCube/ClassiCube/issues/1467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRVGJFEMEA5GHPQUIWT35337RDMRAVCNFSM6AAAAACNVX6PU2VHI2DSMVQWIX3LMV43ASLTON2WKOZTGY4DCMJXGMZTQMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

UnknownShadow200 avatar Dec 03 '25 00:12 UnknownShadow200

On X11 and Wayland, the maximum number of buttons that can be recognised is 48, so that should be our upper limit.

muzikbike avatar Dec 04 '25 04:12 muzikbike

Example output: Image Image Image

muzikbike avatar Dec 04 '25 05:12 muzikbike