<div dir="ltr">Java has an API that is supposed to return the number of buttons of the mouse - <a href="https://docs.oracle.com/javase/8/docs/api/java/awt/MouseInfo.html#getNumberOfButtons--">MouseInfo.getNumberOfButtons()</a>. I wonder if it's possible to learn this number from Wayland somehow? The protocol seems to not put any cap on the value of the button code in the corresponding event.<br></div>