• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/IOHIDFamily-503.215.2/IOHIDSystem/

Lines Matching refs:evg

739                                 if (evg != 0) \
740 if (evg->logCursorUpdates) { \
747 if (evg != 0) \
748 if (evg->logCursorUpdates) { \
1446 p.x = evg->screenCursorFixed.x / 256; // Copy from shmem.
1447 p.y = evg->screenCursorFixed.y / 256;
1452 esp->instance->moveCursor(&p, evg->frame);
1456 esp->instance->showCursor(&p, evg->frame);
1718 evg->lastFrame = maxWaitCursorFrame;
1831 setCursorPosition((IOGPoint *)&evg->cursorLoc, true);
1898 setCursorPosition((IOGPoint *)&evg->cursorLoc, true);
2038 evg = (EvGlobals *)((char *)shmem_addr + eop->evGlobalsOffset);
2041 evg->version = kIOHIDCurrentShmemVersion;
2042 evg->structSize = sizeof( EvGlobals);
2045 evg->waitCursorEnabled = TRUE;
2046 evg->globalWaitCursorEnabled = TRUE;
2047 evg->lastFrame = maxWaitCursorFrame;
2048 evg->waitThreshold = (12 * EV_TICKS_PER_SEC) / 10;
2050 evg->buttons = 0;
2051 evg->eNum = INITEVENTNUM;
2052 evg->eventFlags = oldFlags;
2054 evg->cursorLoc.x = _cursorHelper.desktopLocation().xValue().as32();
2055 evg->cursorLoc.y = _cursorHelper.desktopLocation().yValue().as32();
2056 evg->desktopCursorFixed.x = _cursorHelper.desktopLocation().xValue().asFixed24x8();
2057 evg->desktopCursorFixed.y = _cursorHelper.desktopLocation().yValue().asFixed24x8();
2058 evg->screenCursorFixed.x = _cursorHelper.getScreenLocation().xValue().asFixed24x8();
2059 evg->screenCursorFixed.y = _cursorHelper.getScreenLocation().yValue().asFixed24x8();
2061 evg->updateCursorPositionFromFixed = 0;
2062 evg->logCursorUpdates = 0;
2063 evg->dontCoalesce = 0;
2064 evg->dontWantCoalesce = 0;
2065 evg->wantPressure = 0;
2066 evg->wantPrecision = 0;
2067 evg->mouseRectValid = 0;
2068 evg->movedMask = 0;
2069 evg->cursorSema = OS_SPINLOCK_INIT;
2070 evg->waitCursorSema = OS_SPINLOCK_INIT;
2075 evg->lleq[i].event.type = 0;
2076 AbsoluteTime_to_scalar(&evg->lleq[i].event.time) = 0;
2077 evg->lleq[i].event.flags = 0;
2078 evg->lleq[i].sema = OS_SPINLOCK_INIT;
2079 evg->lleq[i].next = i+1;
2081 evg->LLELast = 0;
2082 evg->lleq[lleqSize-1].next = 0;
2083 evg->LLEHead = evg->lleq[evg->LLELast].next;
2084 evg->LLETail = evg->lleq[evg->LLELast].next;
2205 return evg ? (evg->eventFlags) : 0;
2298 while (++evg->eNum == NULLEVENTNUM)
2300 return(evg->eNum);
2326 NXEQElement * theHead = (NXEQElement *) &evg->lleq[evg->LLEHead];
2327 NXEQElement * theLast = (NXEQElement *) &evg->lleq[evg->LLELast];
2328 NXEQElement * theTail = (NXEQElement *) &evg->lleq[evg->LLETail];
2353 if ((!evg->dontCoalesce) /* Coalescing enabled */
2366 else if (theTail->next != evg->LLEHead) {
2381 theTail->event.flags = evg->eventFlags;
2444 evg->eventFlags,
2447 evg->LLETail = theTail->next;
2448 evg->LLELast = theLast->next;
2468 evg->eventFlags,
2643 if (_cursorWaitDelta && evg->waitCursorEnabled && evg->globalWaitCursorEnabled) {
2708 if ( OSSpinLockTry(&evg->waitCursorSema) )
2710 if ( OSSpinLockTry(&evg->cursorSema) )
2713 if (evg->waitCursorEnabled && evg->globalWaitCursorEnabled)
2716 if (!evg->waitCursorUp) {
2723 if (evg->waitCursorUp && ((_cursorWaitLast + _cursorWaitDelta) < _periodicEventLast)) {
2729 if (evg->waitCursorUp && ((_cursorWaitLast + _cursorWaitDelta) < _periodicEventLast)) {
2733 OSSpinLockUnlock(&evg->cursorSema);
2735 OSSpinLockUnlock(&evg->waitCursorSema);
2756 p = &evg->cursorLoc;
2812 if (evg->updateCursorPositionFromFixed) {
2813 tempLoc.fromFixed24x8(evg->desktopCursorFixed.x, evg->desktopCursorFixed.y);
2816 tempLoc.fromIntFloor(evg->cursorLoc.x, evg->cursorLoc.y);
2864 evg->waitCursorUp = true;
2866 evg->frame = EV_WAITCURSOR;
2873 evg->waitCursorUp = false;
2875 evg->frame = EV_STD_CURSOR;
2882 changeCursor(evg->frame + 1);
2887 evg->frame = ((frame > (int)maxWaitCursorFrame) || (frame > evg->lastFrame)) ? firstWaitCursorFrame : frame;
2888 xpr_ev_cursor("changeCursor %d\n",evg->frame,2,3,4,5);
3276 if( (buttons & EV_LB) != (evg->buttons & EV_LB) ){
3587 evg->eventFlags |= NX_STYLUSPROXIMITYMASK;
3599 evg->eventFlags &= ~NX_STYLUSPROXIMITYMASK;
4598 evg->eventFlags = (evg->eventFlags & ~KEYBOARD_FLAGSMASK)
4601 if (cachedEventFlags != evg->eventFlags) {
4602 cachedEventFlags = evg->eventFlags;
4757 evg->eventFlags = (evg->eventFlags & ~KEYBOARD_FLAGSMASK)
4777 if( (evg->eventFlags & NX_COMMANDMASK) &&
4778 !(evg->eventFlags & NX_CONTROLMASK) &&
4779 !(evg->eventFlags & NX_SHIFTMASK) &&
4780 !(evg->eventFlags & NX_ALTERNATEMASK) )
4794 else if( (evg->eventFlags & NX_COMMANDMASK) &&
4795 !(evg->eventFlags & NX_CONTROLMASK) &&
4796 !(evg->eventFlags & NX_SHIFTMASK) &&
4797 (evg->eventFlags & NX_ALTERNATEMASK) )
4804 evg->eventFlags = 0;
4817 else if( (evg->eventFlags & NX_COMMANDMASK) &&
4818 (evg->eventFlags & NX_CONTROLMASK) &&
4819 !(evg->eventFlags & NX_SHIFTMASK) &&
4820 (evg->eventFlags & NX_ALTERNATEMASK) )
4836 else if( (evg->eventFlags & NX_COMMANDMASK) &&
4837 (evg->eventFlags & NX_CONTROLMASK) &&
4838 !(evg->eventFlags & NX_SHIFTMASK) &&
4839 !(evg->eventFlags & NX_ALTERNATEMASK) )
4856 else if( !(evg->eventFlags & NX_COMMANDMASK) &&
4857 (evg->eventFlags & NX_CONTROLMASK) &&
4858 !(evg->eventFlags & NX_SHIFTMASK) &&
4859 !(evg->eventFlags & NX_ALTERNATEMASK) )
4867 evg->eventFlags = 0;
5060 evg->eventFlags = (evg->eventFlags & ~KEYBOARD_FLAGSMASK)
5090 if (evg->buttons == buttons)
5098 if (evg->buttons == buttons)
5116 CONVERT_EV_TO_HW_DELTA((evg->buttons ^ buttons), hwDelta);
5156 if ((evg->buttons & EV_LB) != (buttons & EV_LB)) {
5173 evg->dontCoalesce = evg->dontWantCoalesce;
5174 if (evg->dontCoalesce)
5175 evg->eventFlags |= NX_NONCOALSESCEDMASK;
5177 evg->eventFlags &= ~NX_NONCOALSESCEDMASK;
5180 if ((evg->buttons & EV_RB) != (buttons & EV_RB)) {
5197 evg->buttons = buttons;
5201 // Sets the cursor position (evg->cursorLoc) to the new
5245 if( OSSpinLockTry(&evg->cursorSema) == 0 ) { // host using shmem
5316 if ((_cursorHelper.desktopLocation().xValue().asFixed24x8() == evg->desktopCursorFixed.x) &&
5317 (_cursorHelper.desktopLocation().yValue().asFixed24x8() == evg->desktopCursorFixed.y) &&
5322 evg->cursorLoc.x = _cursorHelper.desktopLocation().xValue().as32();
5323 evg->cursorLoc.y = _cursorHelper.desktopLocation().yValue().as32();
5324 evg->desktopCursorFixed.x = _cursorHelper.desktopLocation().xValue().asFixed24x8();
5325 evg->desktopCursorFixed.y = _cursorHelper.desktopLocation().yValue().asFixed24x8();
5332 evg->screenCursorFixed.x = _cursorHelper.getScreenLocation().xValue().asFixed24x8();
5333 evg->screenCursorFixed.y = _cursorHelper.getScreenLocation().yValue().asFixed24x8();
5352 _cursorHelper.desktopLocation().xValue().fromFixed24x8(evg->desktopCursorFixed.x);
5353 _cursorHelper.desktopLocation().yValue().fromFixed24x8(evg->desktopCursorFixed.y);
5362 // Note: extPostEvent clears evg->movedMask as a hack to prevent these events
5364 if (evg->movedMask) {
5365 if ((evg->movedMask & NX_LMOUSEDRAGGEDMASK) && (evg->buttons & EV_LB)) {
5368 else if ((evg->movedMask & NX_RMOUSEDRAGGEDMASK) && (evg->buttons & EV_RB)) {
5371 else if (evg->movedMask & NX_MOUSEMOVEDMASK) {
5376 /* check new cursor position for leaving evg->mouseRect */
5377 if (cursorMoved && evg->mouseRectValid && _cursorHelper.desktopLocation().inRect(evg->mouseRect))
5379 if (evg->mouseRectValid)
5386 evg->mouseRectValid = 0;
5389 OSSpinLockUnlock(&evg->cursorSema);
5755 // hack: clear evg->movedMask so setCursorPosition will not post
5760 oldMovedMask = evg->movedMask;
5761 evg->movedMask = 0;
5787 evg->movedMask = oldMovedMask;
5848 evg->buttons = GetCachedMouseButtonStates(cachedButtonStates);
5854 newFlags = evg->eventFlags = (evg->eventFlags & ~KEYBOARD_FLAGSMASK)