How to learn the number of mouse buttons from Wayland?

Maxim Kartashev maxim.kartashev at jetbrains.com
Fri Sep 2 13:14:26 UTC 2022


Java has an API that is supposed to return the number of buttons of the
mouse - MouseInfo.getNumberOfButtons()
<https://docs.oracle.com/javase/8/docs/api/java/awt/MouseInfo.html#getNumberOfButtons-->.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/wakefield-dev/attachments/20220902/ba33091e/attachment.htm>


More information about the wakefield-dev mailing list