Lines Matching refs:DeviceEvent

75     } else if (auto* device = xev.As<x11::Input::DeviceEvent>()) {  in UpdateStateFromXEvent()
76 if (device->opcode == x11::Input::DeviceEvent::KeyPress) in UpdateStateFromXEvent()
78 else if (device->opcode == x11::Input::DeviceEvent::KeyPress) in UpdateStateFromXEvent()
102 auto* event = x11_event.As<x11::Input::DeviceEvent>(); in TouchEventIsGeneratedHack()
104 CHECK(event->opcode == x11::Input::DeviceEvent::TouchBegin || in TouchEventIsGeneratedHack()
105 event->opcode == x11::Input::DeviceEvent::TouchUpdate || in TouchEventIsGeneratedHack()
106 event->opcode == x11::Input::DeviceEvent::TouchEnd); in TouchEventIsGeneratedHack()
189 auto* xievent = x11_event.As<x11::Input::DeviceEvent>(); in GetEventFlagsFromXGenericEvent()
191 DCHECK(xievent->opcode == x11::Input::DeviceEvent::KeyPress || in GetEventFlagsFromXGenericEvent()
192 xievent->opcode == x11::Input::DeviceEvent::KeyRelease); in GetEventFlagsFromXGenericEvent()
226 int GetButtonMaskForX2Event(const x11::Input::DeviceEvent& xievent) { in GetButtonMaskForX2Event()
241 auto* event = x11_event.As<x11::Input::DeviceEvent>(); in GetTouchEventType()
249 case x11::Input::DeviceEvent::TouchBegin: in GetTouchEventType()
252 case x11::Input::DeviceEvent::TouchUpdate: in GetTouchEventType()
255 case x11::Input::DeviceEvent::TouchEnd: in GetTouchEventType()
263 case x11::Input::DeviceEvent::ButtonPress: in GetTouchEventType()
265 case x11::Input::DeviceEvent::ButtonRelease: in GetTouchEventType()
267 case x11::Input::DeviceEvent::Motion: in GetTouchEventType()
290 auto* xiev = x11_event.As<x11::Input::DeviceEvent>(); in ScaleTouchRadius()
359 if (auto* device = xev.As<x11::Input::DeviceEvent>()) { in TimeTicksFromXEvent()
421 if (auto* xievent = xev.As<x11::Input::DeviceEvent>()) { in EventTypeFromXEvent()
433 case x11::Input::DeviceEvent::TouchBegin: in EventTypeFromXEvent()
435 case x11::Input::DeviceEvent::TouchUpdate: in EventTypeFromXEvent()
437 case x11::Input::DeviceEvent::TouchEnd: in EventTypeFromXEvent()
439 case x11::Input::DeviceEvent::ButtonPress: { in EventTypeFromXEvent()
445 case x11::Input::DeviceEvent::ButtonRelease: { in EventTypeFromXEvent()
452 case x11::Input::DeviceEvent::Motion: { in EventTypeFromXEvent()
480 case x11::Input::DeviceEvent::KeyPress: in EventTypeFromXEvent()
482 case x11::Input::DeviceEvent::KeyRelease: in EventTypeFromXEvent()
511 if (auto* xievent = xev.As<x11::Input::DeviceEvent>()) { in EventFlagsFromXEvent()
513 case x11::Input::DeviceEvent::TouchBegin: in EventFlagsFromXEvent()
514 case x11::Input::DeviceEvent::TouchUpdate: in EventFlagsFromXEvent()
515 case x11::Input::DeviceEvent::TouchEnd: in EventFlagsFromXEvent()
520 case x11::Input::DeviceEvent::ButtonPress: in EventFlagsFromXEvent()
521 case x11::Input::DeviceEvent::ButtonRelease: { in EventFlagsFromXEvent()
537 case x11::Input::DeviceEvent::Motion: in EventFlagsFromXEvent()
540 case x11::Input::DeviceEvent::KeyPress: in EventFlagsFromXEvent()
541 case x11::Input::DeviceEvent::KeyRelease: { in EventFlagsFromXEvent()
563 if (auto* xievent = xev.As<x11::Input::DeviceEvent>()) { in EventLocationFromXEvent()
568 case x11::Input::DeviceEvent::TouchBegin: in EventLocationFromXEvent()
569 case x11::Input::DeviceEvent::TouchUpdate: in EventLocationFromXEvent()
570 case x11::Input::DeviceEvent::TouchEnd: in EventLocationFromXEvent()
590 if (auto* xievent = xev.As<x11::Input::DeviceEvent>()) { in EventSystemLocationFromXEvent()
598 auto* xievent = xev.As<x11::Input::DeviceEvent>(); in EventButtonFromXEvent()
610 auto* device = xev.As<x11::Input::DeviceEvent>(); in GetChangedMouseButtonFlagsFromXEvent()
611 if (device && (device->opcode == x11::Input::DeviceEvent::ButtonPress || in GetChangedMouseButtonFlagsFromXEvent()
612 device->opcode == x11::Input::DeviceEvent::ButtonRelease)) { in GetChangedMouseButtonFlagsFromXEvent()
626 auto* device = xev.As<x11::Input::DeviceEvent>(); in GetMouseWheelOffsetFromXEvent()
688 auto* event = x11_event.As<x11::Input::DeviceEvent>(); in GetTouchForceFromXEvent()
689 if (event->opcode == x11::Input::DeviceEvent::TouchEnd) in GetTouchForceFromXEvent()