Lines Matching refs:buttons
601 // 2) if Xsystem reports that "state" represents that button was just released. This only happens on RELEASE with 1,2,3 buttons.
603 if (((state & XConstants.buttonsMask[i]) != 0) != (button == XConstants.buttons[i])){
604 //exclude wheel buttons from adding their numbers as modifiers
670 * Ignore the buttons above 20 due to the bit limit for
721 button = XConstants.buttons[lbutton - 1];
722 // 4 and 5 buttons are usually considered assigned to a first wheel
723 if (lbutton == XConstants.buttons[3] ||
724 lbutton == XConstants.buttons[4]) {
728 // mapping extra buttons to numbers starting from 4.
729 if ((button > XConstants.buttons[4]) && (!Toolkit.getDefaultToolkit().areExtraMouseButtonsEnabled())){
733 if (button > XConstants.buttons[4]){
792 //this doesn't work for extra buttons because Xsystem is sending state==0 for every extra button event.
798 // TODO : here is the bug in WM: extra buttons doesn't have state!=0 as they should.