static int mouseButtonMaskForRobot(int button) { ret button == 1 ? InputEvent.BUTTON1_MASK : button == 2 ? InputEvent.BUTTON2_MASK : button == 3 ? InputEvent.BUTTON3_MASK : 0; }