Lines Matching full:touch
46 * Some documentation about touch points:
47 * The driver submits touch events with it's own (unique) touch point ID.
60 * being processed, it becomes a TouchPointInfo in dev->touch-touches which
65 * Check which devices need a bigger touch event queue and grow their
98 * Given the DDX-facing ID (which is _not_ DeviceEvent::detail.touch), find the
101 * @param dev The device to create the touch point for
102 * @param ddx_id Touch id assigned by the driver/ddx
111 if (!dev->touch) in TouchFindByDDXID()
127 * If no other touch points are active, mark new touchpoint for pointer
130 * Returns NULL on failure (i.e. if another touch with that ID is already active,
138 TouchClassPtr t = dev->touch; in TouchBeginDDXTouch()
154 /* Only emulate pointer events on the first touch */ in TouchBeginDDXTouch()
157 else if (!ti) /* ti is now first non-active touch rec */ in TouchBeginDDXTouch()
187 TouchClassPtr t = dev->touch; in TouchEndDDXTouch()
238 if (!device->touch || index >= device->touch->num_touches) in TouchFreeTouchPoint()
240 ti = &device->touch->touches[index]; in TouchFreeTouchPoint()
260 * Given a client-facing ID (e.g. DeviceEvent::detail.touch), find the
266 TouchClassPtr t = dev->touch; in TouchFindByClientID()
286 * Returns NULL on failure (i.e. if another touch with that ID is already active,
294 TouchClassPtr t = dev->touch; in TouchBeginTouch()
304 * touch ids without lifting that one finger off once. In which case in TouchBeginTouch()
321 /* If we get here, then we've run out of touches: enlarge dev->touch and in TouchBeginTouch()
350 !dev->touch->buttonsDown && GrabIsPointerGrab(grab)) in TouchEndTouch()
373 * Allocate the event history for this touch pointer. Calling this on a
403 * A touch event history consists of one TouchBegin and several TouchUpdate
437 DebugF("source device %d: history size %zu overflowing for touch %u\n", in TouchEventHistoryPush()
460 listener. If that is a touch listener, everything is dandy. in TouchEventHistoryReplay()
467 prevents handling of touch events for ownership listeners who in TouchEventHistoryReplay()
502 TouchClassPtr t = dev->touch; in TouchBuildDependentSpriteTrace()
507 * existing touch's sprite if possible, else use the device's sprite. */ in TouchBuildDependentSpriteTrace()
544 TouchClassPtr t = sourcedev->touch; in TouchBuildSprite()
548 /* Focus immediately under the touchpoint in direct touch mode. in TouchBuildSprite()
573 * Copy the touch event into the pointer_event, switching the required
576 * @param event The original touch event
614 "Non-emulating touch event\n"); in TouchConvertToPointerEvent()
634 * touch event or 0 if no such event type exists.
659 * the touch sequence.
668 * Add the resource to this touch's listeners.
697 * Remove the resource from this touch's listeners.
884 /* We set up an active touch listener for existing touches, but not any in TouchSetupListeners()
909 * Remove the touch pointer grab from the device. Called from
919 if (!dev->touch) in TouchRemovePointerGrab()
937 /* As touch grabs don't turn into active grabs with their own resources, we
952 if (!dev->touch) in TouchListenerGone()
955 for (i = 0; i < dev->touch->num_touches; i++) { in TouchListenerGone()
956 ti = &dev->touch->touches[i]; in TouchListenerGone()
998 BUG_RETURN_VAL_MSG(!events, BadAlloc, "Failed to allocate touch ownership events\n"); in TouchListenerAcceptReject()
1002 BUG_WARN_MSG(nev == 0, "Failed to get touch ownership events\n"); in TouchListenerAcceptReject()
1019 if (!dev->touch) { in TouchAcceptReject()
1073 * @param ti The touch point record to deliver the event for.
1084 /* We're not processing a touch end for a frozen device */ in TouchEmitTouchEnd()