Home | History | Annotate | Download | only in fbcon

Lines Matching defs:button

706 void FB_vgamousecallback(int button, int relative, int dx, int dy)
718 /* Swap button 1 and 3 */
719 button_1 = (button & 0x04) >> 2;
720 button_3 = (button & 0x01) << 2;
721 button &= ~0x05;
722 button |= (button_1|button_3);
726 state_changed = button_state ^ button;
729 if ( button & (1<<i) ) {
744 int button;
747 button = (sample.pressure > 0) ? 1 : 0;
748 button <<= 2; /* must report it as button 3 */
749 FB_vgamousecallback(button, 0, sample.x, sample.y);
765 int button = 0;
789 if(eloReadPosition(this, mouse_fd, &dx, &dy, &button, &realx, &realy)) {
790 button = (button & 0x01) << 2;
791 FB_vgamousecallback(button, 0, dx, dy);
831 button = (~mousebuf[i]) & 0x07;
845 button = (mousebuf[i] & 0x04) >> 1 | /*Middle*/
855 button = (mousebuf[i] & 0x04) >> 1 | /*Middle*/
868 case 0x0F: /* DY = +1 (map button 4) */
869 FB_vgamousecallback(button | (1<<3),
872 case 0x01: /* DY = -1 (map button 5) */
873 FB_vgamousecallback(button | (1<<4),
886 button = ((mousebuf[i] & 0x20) >> 3) |
901 button = (~mousebuf[i]) & 0x07;
911 FB_vgamousecallback(button, relative, dx, dy);