| /xsrc/external/mit/xorg-server/dist/hw/netbsd/x68k/ |
| mouseEmu3btn.c | 55 * We track buttons 1 and 3 (left and right). There are 11 states: 84 * 0: no buttons down 87 * 3: both buttons down 89 * Note that button events are not deltas, they are the set of buttons being 114 /* The set of buttons being pressed passed from DDX mouse events */ 119 /* Event index values per buttons being pressed */ 130 struct button_action buttons[NEMU_BUTTONSTATE]; member in struct:button_state 139 * If the buttons are in <button state>, generate <events> then go to 147 .buttons[EMU_BUTTONS_NONE] = { 154 .buttons[EMU_BUTTONS_LEFT] = [all...] |
| mouseEmu3btn.h | 48 void Emulate3ButtonsQueueEvent(MouseEmu3btnPtr pEmu3btn, int type, int buttons, int bmask);
|
| x68kMouse.c | 209 /* Initialize emulation 3 buttons settings */ 332 int type, buttons, flag; local 347 * Mouse buttons start at 1 as defined in <X11/X.h>. 349 * The bmask stores which buttons are currently pressed. 353 buttons = (fe->id - MS_LEFT) + 1; 354 bmask = 1 << (buttons - 1); 370 if (buttons == Button1 || buttons == Button3) { 372 Emulate3ButtonsQueueEvent(&pPriv->emu3btn, type, buttons, pPriv->bmask); 376 QueuePointerEvents(device, type, buttons, flag, &mask) [all...] |
| /xsrc/external/mit/xorg-server.old/dist/hw/dmx/input/ |
| lnx-ms.c | 116 } buttons; member in struct:_myPrivate 144 static void msLinuxButton(DevicePtr pDev, ENQUEUEPROC enqueue, int buttons, 159 if ((buttons & button1) && !(priv->buttons & button1)) PRESS(1); 160 if (!(buttons & button1) && (priv->buttons & button1)) RELEASE(1); 162 if ((buttons & button2) && !(priv->buttons & button2)) PRESS(2); 163 if (!(buttons & button2) && (priv->buttons & button2)) RELEASE(2) [all...] |
| lnx-ps2.c | 112 } buttons; member in struct:_myPrivate 141 int buttons, BLOCK block) 155 if ((buttons & button1) && !(priv->buttons & button1)) PRESS(1); 156 if (!(buttons & button1) && (priv->buttons & button1)) RELEASE(1); 158 if ((buttons & button2) && !(priv->buttons & button2)) PRESS(2); 159 if (!(buttons & button2) && (priv->buttons & button2)) RELEASE(2) [all...] |
| /xsrc/external/mit/libXi/dist/src/ |
| XIQueryPointer.c | 55 XIButtonState *buttons, 99 buttons->mask_len = rep.buttons_len * 4; 100 buttons->mask = malloc(buttons->mask_len); 101 if (buttons->mask) 102 _XRead(dpy, (char*)buttons->mask, buttons->mask_len);
|
| /xsrc/external/mit/xf86-input-mouse/dist/src/ |
| hurd_mouse.c | 108 int buttons = pMse->lastButtons; local 112 buttons = (buttons & 6) |(event->value.up ? 0 : 1); 115 buttons = (buttons & 5) |(event->value.up ? 0 : 2); 118 buttons = (buttons & 3) |(event->value.up ? 0 : 4) ; 128 pMse->PostEvent(pInfo, buttons, dx, dy, 0, 0);
|
| mouse.c | 41 * [PME-02/08/11] Added support for drag lock buttons 97 /* number of maps to map all the buttons */ 105 /* mask for those buttons that are ordinary drag lock buttons */ 120 /* simulate these buttons being down although they are not */ 124 * data to map bits for drag lock buttons to corresponding 125 * bits for the target buttons 152 static void MousePostEvent(InputInfoPtr pInfo, int buttons, 313 pMse->buttons = xf86SetIntOption(pInfo->options, "Buttons", 0) 1188 int j, buttons, dx, dy, dz, dw, baddata; local 2428 int i, b, buttons = 0; local [all...] |
| bsd_mouse.c | 448 int buttons = pMse->lastButtons; local 453 buttons &= ~BUTBIT; 456 buttons |= BUTBIT; 508 pMse->PostEvent(pInfo, buttons, dx, dy, dz, dw); 554 hid_item_t loc_btn[MSE_MAXBUTTONS]; /* buttons locator items */ 581 min(pMse->buttons, MSE_MAXBUTTONS), 649 int buttons = pMse->lastButtons; local 681 buttons = 0; 682 for (n = 0; n < pMse->buttons; n++) { 684 buttons |= (1 << UMS_BUT(n)) [all...] |
| /xsrc/external/mit/xf86-input-ws/dist/src/ |
| ws.c | 164 priv->buttons = xf86SetIntOption(pInfo->options, "Buttons", 0); 165 if (priv->buttons == 0) { 166 priv->buttons = DFLTBUTTONS; 180 "%s: ZAxisMapping: buttons %d and %d\n", 187 if (priv->negativeZ > priv->buttons) { 188 priv->buttons = priv->negativeZ; 191 if (priv->positiveZ > priv->buttons) { 192 priv->buttons = priv->positiveZ; 206 "%s: WAxisMapping: buttons %d and %d\n" 640 int buttons = priv->lastButtons; local [all...] |
| ws.h | 34 #define NBUTTONS 32 /* max theoretical buttons */ 35 #define DFLTBUTTONS 3 /* default number of buttons */ 41 unsigned int buttons; /* # of buttons */ member in struct:WSDevice 42 unsigned int lastButtons; /* last state of buttons */
|
| /xsrc/external/mit/xorg-server/dist/Xi/ |
| xiquerypointer.c | 83 char *buttons = NULL; local 84 int buttons_size = 0; /* size of buttons array */ 154 buttons = calloc(rep.buttons_len, 4); 155 if (!buttons) 161 SetBit(buttons, pDev->button->map[i]); 164 SetBit(buttons, pDev->button->map[1]); 197 if (buttons) 198 WriteToClient(client, buttons_size, buttons); 200 free(buttons);
|
| /xsrc/external/mit/xorg-server.old/dist/Xi/ |
| xiquerypointer.c | 84 char *buttons = NULL; local 85 int buttons_size = 0; /* size of buttons array */ 150 buttons = calloc(1, buttons_size); 151 if (!buttons) 160 SetBit(buttons, i); 198 if (buttons) 199 WriteToClient(client, buttons_size, buttons); 201 free(buttons);
|
| /xsrc/external/mit/xf86-input-vmmouse/dist/src/ |
| vmmouse.c | 147 static void VMMousePostEvent(InputInfoPtr pInfo, int buttons, int dx, int dy, int dz, int dw); 148 static void VMMouseDoPostEvent(InputInfoPtr pInfo, int buttons, int dx, int dy); 552 VMMouseDoPostEvent(InputInfoPtr pInfo, int buttons, int dx, int dy) 565 * used to compare the current buttons and the previous buttons 568 truebuttons = buttons; 570 buttons = reverseBits(reverseMap, buttons); 592 change = buttons ^ reverseBits(reverseMap, pMse->lastButtons); 597 (buttons & (1 << (id - 1))), 0, 0) 1129 int buttons, dx, dy, dz, dw; local [all...] |
| /xsrc/external/mit/transset/dist/ |
| dsimple.c | 167 int buttons = 0; local 180 while ((target_win == None) || (buttons != 0)) { 191 buttons++; 194 if (buttons > 0) /* there may have been some down before we started */ 195 buttons--; 222 //int buttons = 0;
|
| /xsrc/external/mit/xprop/dist/ |
| dsimple.c | 256 int buttons = 0; local 268 while ((target_win == None) || (buttons != 0)) { 278 buttons++; 281 if (buttons > 0) /* there may have been some down before we started */ 282 buttons--;
|
| /xsrc/external/mit/xwd/dist/ |
| dsimple.c | 244 int buttons = 0; local 257 while ((target_win == None) || (buttons != 0)) { 268 buttons++; 271 if (buttons > 0) /* there may have been some down before we started */ 272 buttons--;
|
| /xsrc/external/mit/xorg-server.old/dist/include/ |
| eventstr.h | 98 uint8_t buttons[(MAX_BUTTONS + 7)/8]; /**< Button mask */ member in struct:_DeviceEvent 148 int num_buttons; /**< Number of buttons */ 150 } buttons; member in struct:_DeviceChangedEvent
|
| /xsrc/external/mit/xorg-server.old/dist/test/xi2/ |
| protocol-eventconvert.c | 272 int buttons, valuators; local 343 buttons = 0; 344 for (i = 0; i < bits_to_bytes(sizeof(in->buttons)); i++) 346 if (XIMaskIsSet(in->buttons, i)) 349 buttons++; 354 for (i = 0; i < sizeof(in->buttons) * 8; i++) 355 g_assert(XIMaskIsSet(in->buttons, i) == XIMaskIsSet(ptr, i)); 601 for (i = 0; i < sizeof(in.buttons) * 8; i++) 603 XISetMask(in.buttons, i); 605 XIClearMask(in.buttons, i) [all...] |
| /xsrc/external/mit/xinput/dist/src/ |
| state.c | 85 (but_state->buttons[loop2 / 8] & (1 << (loop2 % 8))) ? "down" : "up" );
|
| /xsrc/external/mit/xorg-server/dist/hw/sun/ |
| sunMouse.c | 303 int type, buttons, flag; local 318 * Mouse buttons start at 1. 320 buttons = (fe->id - MS_LEFT) + 1; 321 bmask = 1 << buttons; 339 QueuePointerEvents(device, type, buttons, flag, &mask);
|
| /xsrc/external/mit/xorg-server.old/dist/hw/netbsd/x68k/ |
| x68kMouse.c | 260 int type, buttons, flag; local 277 * Mouse buttons start at 1. 279 buttons = (fe->id - MS_LEFT) + 1; 280 bmask = 1 << buttons; 299 type, buttons, flag, &mask);
|
| /xsrc/external/mit/xorg-server.old/dist/hw/sun/ |
| sunMouse.c | 245 int type, buttons, flag; local 262 * Mouse buttons start at 1. 264 buttons = (fe->id - MS_LEFT) + 1; 265 bmask = 1 << buttons; 284 type, buttons, flag, &mask);
|
| /xsrc/external/mit/xorgproto/dist/include/X11/extensions/ |
| xf86misc.h | 94 int buttons; member in struct:__anon11870
|
| /xsrc/external/mit/xorg-server.old/dist/dix/ |
| eventconvert.c | 421 mask_len = bytes_to_int32(bits_to_bytes(dce->buttons.num_buttons)); 424 info->num_buttons = dce->buttons.num_buttons; 434 memcpy(bits, dce->buttons.names, dce->buttons.num_buttons * sizeof(Atom)); 468 if (dce->buttons.num_buttons) 471 len += dce->buttons.num_buttons * sizeof(Atom); /* button names */ 472 len += pad_to_int32(bits_to_bytes(dce->buttons.num_buttons)); 503 if (dce->buttons.num_buttons) 556 /* FIXME: this should just send the buttons we have, not MAX_BUTTONs. Same 598 for (i = 0; i < sizeof(ev->buttons) * 8; i++ [all...] |