Lines Matching +full:button +full:-

2  *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
35 #include <xwin-config.h>
40 #include "exevents.h" /* for button/axes labels */
41 #include "xserver-properties.h"
44 /* Peek the internal button mapping */
60 * See Porting Layer Definition - p. 18
103 /* initalize button map */ in winMouseProc()
129 g_winMouseButtonMap = pDeviceInt->button->map; in winMouseProc()
133 pDevice->on = TRUE; in winMouseProc()
140 pDevice->on = FALSE; in winMouseProc()
150 int button; in winMouseWheel() local
173 if (iDeltaZ >= WHEEL_DELTA || (-1 * iDeltaZ) >= WHEEL_DELTA) { in winMouseWheel()
189 /* Set the button to indicate up or down wheel delta */ in winMouseWheel()
191 button = iButtonUp; in winMouseWheel()
194 button = iButtonDown; in winMouseWheel()
200 * button clicks for the Z axis. in winMouseWheel()
203 iDeltaZ *= -1; in winMouseWheel()
207 while (iDeltaZ--) { in winMouseWheel()
208 /* Push the wheel button */ in winMouseWheel()
209 winMouseButtonsSendEvent(ButtonPress, button); in winMouseWheel()
211 /* Release the wheel button */ in winMouseWheel()
212 winMouseButtonsSendEvent(ButtonRelease, button); in winMouseWheel()
219 * Enqueue a mouse button event
249 winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo; in winMouseButtonsHandle()
251 /* Send button events right away if emulate 3 buttons is off */ in winMouseButtonsHandle()
252 if (pScreenInfo->iE3BTimeout == WIN_E3B_OFF) { in winMouseButtonsHandle()
253 /* Emulate 3 buttons is off, send the button event */ in winMouseButtonsHandle()
260 && pScreenPriv->iE3BCachedPress == 0 in winMouseButtonsHandle()
261 && !pScreenPriv->fE3BFakeButton2Sent) { in winMouseButtonsHandle()
263 * Button was pressed, no press is cached, in winMouseButtonsHandle()
264 * and there is no fake button 2 release pending. in winMouseButtonsHandle()
267 /* Store button press type */ in winMouseButtonsHandle()
268 pScreenPriv->iE3BCachedPress = iButton; in winMouseButtonsHandle()
271 * Set a timer to send this button press if the other button in winMouseButtonsHandle()
274 SetTimer(pScreenPriv->hwndScreen, in winMouseButtonsHandle()
275 WIN_E3B_TIMER_ID, pScreenInfo->iE3BTimeout, NULL); in winMouseButtonsHandle()
278 && pScreenPriv->iE3BCachedPress != 0 in winMouseButtonsHandle()
279 && pScreenPriv->iE3BCachedPress != iButton in winMouseButtonsHandle()
280 && !pScreenPriv->fE3BFakeButton2Sent) { in winMouseButtonsHandle()
282 * Button press is cached, other button was pressed, in winMouseButtonsHandle()
283 * and there is no fake button 2 release pending. in winMouseButtonsHandle()
286 /* Mouse button was cached and other button was pressed */ in winMouseButtonsHandle()
287 KillTimer(pScreenPriv->hwndScreen, WIN_E3B_TIMER_ID); in winMouseButtonsHandle()
288 pScreenPriv->iE3BCachedPress = 0; in winMouseButtonsHandle()
290 /* Send fake middle button */ in winMouseButtonsHandle()
293 /* Indicate that a fake middle button event was sent */ in winMouseButtonsHandle()
294 pScreenPriv->fE3BFakeButton2Sent = TRUE; in winMouseButtonsHandle()
297 && pScreenPriv->iE3BCachedPress == iButton) { in winMouseButtonsHandle()
299 * Cached button was released before timer ran out, in winMouseButtonsHandle()
300 * and before the other mouse button was pressed. in winMouseButtonsHandle()
302 KillTimer(pScreenPriv->hwndScreen, WIN_E3B_TIMER_ID); in winMouseButtonsHandle()
303 pScreenPriv->iE3BCachedPress = 0; in winMouseButtonsHandle()
310 && pScreenPriv->fE3BFakeButton2Sent && !(wParam & MK_LBUTTON) in winMouseButtonsHandle()
313 * Fake button 2 was sent and both mouse buttons have now been released in winMouseButtonsHandle()
315 pScreenPriv->fE3BFakeButton2Sent = FALSE; in winMouseButtonsHandle()
317 /* Send middle mouse button release */ in winMouseButtonsHandle()
321 && pScreenPriv->iE3BCachedPress == 0 in winMouseButtonsHandle()
322 && !pScreenPriv->fE3BFakeButton2Sent) { in winMouseButtonsHandle()
324 * Button was release, no button is cached, in winMouseButtonsHandle()
325 * and there is no fake button 2 release is pending. in winMouseButtonsHandle()