Searched refs:xievent (Results 1 – 9 of 9) sorted by relevance
172 int GetButtonMaskForX2Event(XIDeviceEvent* xievent) { in GetButtonMaskForX2Event() argument174 for (int i = 0; i < 8 * xievent->buttons.mask_len; i++) { in GetButtonMaskForX2Event()175 if (XIMaskIsSet(xievent->buttons.mask, i)) { in GetButtonMaskForX2Event()176 int button = (xievent->sourceid == xievent->deviceid) ? in GetButtonMaskForX2Event()277 XIDeviceEvent* xievent = in EventTypeFromNative() local280 if (factory->IsTouchDevice(xievent->sourceid)) in EventTypeFromNative()283 switch (xievent->evtype) { in EventTypeFromNative()307 } else if (GetButtonMaskForX2Event(xievent)) { in EventTypeFromNative()339 XIDeviceEvent* xievent = in EventFlagsFromNative() local342 switch (xievent->evtype) { in EventFlagsFromNative()[all …]
374 XIDeviceEvent* xievent = in IsTouchpadXInputEvent() local376 if (xievent->sourceid >= kMaxDeviceNum) in IsTouchpadXInputEvent()378 return touchpads_[xievent->sourceid]; in IsTouchpadXInputEvent()386 XIDeviceEvent* xievent = in IsCMTDeviceEvent() local388 if (xievent->sourceid >= kMaxDeviceNum) in IsCMTDeviceEvent()390 return cmt_devices_[xievent->sourceid]; in IsCMTDeviceEvent()613 void DeviceDataManager::SetValuatorDataForTest(XIDeviceEvent* xievent, in SetValuatorDataForTest() argument616 int index = valuator_lookup_[xievent->deviceid][type]; in SetValuatorDataForTest()617 CHECK(!XIMaskIsSet(xievent->valuators.mask, index)); in SetValuatorDataForTest()618 CHECK(index >= 0 && index < valuator_count_[xievent->deviceid]); in SetValuatorDataForTest()[all …]
225 void SetValuatorDataForTest(XIDeviceEvent* xievent,
994 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xevent->xcookie.data); in RewriteLocatedEvent() local995 if (xievent->evtype != XI_ButtonPress && xievent->evtype != XI_ButtonRelease) in RewriteLocatedEvent()1001 GetRemappedModifierMasks(event->flags(), xievent->mods.effective, in RewriteLocatedEvent()1003 xievent->mods.effective = remapped_native_modifiers; in RewriteLocatedEvent()1006 if ((xievent->mods.effective & Mod1Mask) && xievent->detail == 1) { in RewriteLocatedEvent()1007 xievent->mods.effective &= ~Mod1Mask; in RewriteLocatedEvent()1008 xievent->detail = 3; in RewriteLocatedEvent()1009 if (xievent->evtype == XI_ButtonRelease) { in RewriteLocatedEvent()1012 XISetMask(xievent->buttons.mask, 3); in RewriteLocatedEvent()1013 XIClearMask(xievent->buttons.mask, 1); in RewriteLocatedEvent()[all …]
243 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event->xcookie.data); in WillProcessEvent() local244 xievent->event = xievent->root; in WillProcessEvent()245 xievent->event_x = xievent->root_x; in WillProcessEvent()246 xievent->event_y = xievent->root_y; in WillProcessEvent()923 XIDeviceEvent* xievent = in DispatchXI2Event() local925 int button = xievent->detail; in DispatchXI2Event()
442 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xev->xcookie.data); in CoalescePendingMotionEvents() local475 if (xievent->event == next_xievent->event && in CoalescePendingMotionEvents()476 xievent->child == next_xievent->child && in CoalescePendingMotionEvents()477 xievent->detail == next_xievent->detail && in CoalescePendingMotionEvents()478 xievent->buttons.mask_len == next_xievent->buttons.mask_len && in CoalescePendingMotionEvents()479 (memcmp(xievent->buttons.mask, in CoalescePendingMotionEvents()481 xievent->buttons.mask_len) == 0) && in CoalescePendingMotionEvents()482 xievent->mods.base == next_xievent->mods.base && in CoalescePendingMotionEvents()483 xievent->mods.latched == next_xievent->mods.latched && in CoalescePendingMotionEvents()484 xievent->mods.locked == next_xievent->mods.locked && in CoalescePendingMotionEvents()[all …]
245 XIEvent* xievent = static_cast<XIEvent*>(xevent->xcookie.data); in RecordTouchEvent() local246 if (xievent->evtype == XI_TouchBegin || in RecordTouchEvent()247 xievent->evtype == XI_TouchUpdate || in RecordTouchEvent()248 xievent->evtype == XI_TouchEnd) { in RecordTouchEvent()
432 XIDeviceEvent* xievent = in AppendModifier() local434 if (xievent) { in AppendModifier()436 &xievent->mods.effective)); in AppendModifier()
1329 XIDeviceEvent* xievent = in Dispatch() local1331 int button = xievent->detail; in Dispatch()1348 XIDeviceEvent* xievent = in Dispatch() local1350 int button = xievent->detail; in Dispatch()