Description
I have a Logitech G502 mouse, which has side buttons usually mapped to go back/ go forwards). There have been times I've accidentally clicked these buttons while interacting with a cheerpj applet, and it causes an unchecked exception to kill the current thread.
This can be reproduced in the official cheerpj demos, which I'll describe below
Steps to reproduce
(assuming you have a mouse with forwards/back buttons)
Applet stops responding to actions (cannot click most buttons)
Stack trace emitted to console
{code}
Exception in thread "Thread-2"
java.lang.IllegalArgumentException: button doesn't exist 0
at java.lang.Exception.(Unknown Source)
at java.lang.RuntimeException.(Unknown Source)
at java.lang.IllegalArgumentException.(Unknown Source)
at java.awt.event.InputEvent.getMaskForButton(Unknown Source)
at com.leaningtech.cheerpj.MouseState.sendMouseEvent(Unknown Source)
at com.leaningtech.cheerpj.CheerpJDisplay.sendMouseEvent(Unknown Source)
at com.leaningtech.cheerpj.CheerpJToolkit$1.run(Unknown Source)
{code}
Description I have a Logitech G502 mouse, which has side buttons usually mapped to go back/ go forwards). There have been times I've accidentally clicked these buttons while interacting with a cheerpj applet, and it causes an unchecked exception to kill the current thread.
This can be reproduced in the official cheerpj demos, which I'll describe below
Steps to reproduce (assuming you have a mouse with forwards/back buttons)
Expectation
Actual: