int (int button) { return switch (button) { case MouseEvent.BUTTON1 -> InputEvent.BUTTON1_DOWN_MASK; case MouseEvent.BUTTON2 -> InputEvent.BUTTON2_DOWN_MASK; case MouseEvent.BUTTON3 -> InputEvent.BUTTON3_DOWN_MASK; default -> 0; }; }