lp://staging/~oif-team/frame/semi-mt-addons
- Get this branch:
- bzr branch lp://staging/~oif-team/frame/semi-mt-addons
Branch merges
- Chase Douglas (community): Approve
-
Diff: 76 lines (+30/-22)1 file modifiedsrc/frame.c (+30/-22)
Branch information
Recent revisions
- 36. By Henrik Rydberg
-
Additional corrections
In the branch, active is not set in one place, and the identifier
range can wrap, causing duplicate use. This patch corrects those
issues, and breaks out the setting of semi-mt touches into its
own function.Signed-off-by: Henrik Rydberg <email address hidden>
- 35. By Chase Douglas
-
Clean up semi-mt touch count logic
By watching for BTN_TOUCH == 0 we can drop any logic handling for when
other semi-mt touch count events are sent with value 0. - 33. By Chase Douglas
-
Provide the range of touch IDs and decouple ID from touch active state
The kernel provides a range of touch IDs for each device, and XI 2.1 will
have its own range as well. The tracking ID from the kernel is set to -1
when the touch goes inactive, but -1 (as an unsigned int) is a valid
value for XI 2.1. To make things work in both environments, the tracking
ID range is provided in the touch surface, and the active state has been
decoupled from the tracking ID value. The backend (mtdev or XI 2.1) must
now set the active value of the touch contact.Also, to provide for the full range of XI 2.1 touch IDs, the ID value has
been changed to unsigned int. - 31. By Chase Douglas
-
Set the active number of touches on semi-mt devices
Use the evdev semi-mt BTN_TOOL_*TAP events to set the active number of
touches on these types of devices. - 30. By Chase Douglas
-
Add additional contacts for semi-mt devices
Semi-multitouch devices provide a bounding box in the first two touch
contacts and a number of touches within the bounding box. This change
keeps the first two touch contacts as the bounding box and then adds more
touches at the center of the box as needed to match the total number of
touches on the device.The tracking ID is set to the first touchs' tracking ID minus 1 (skipping
over the invalid ID of -1). This ensures a unique tracking ID unless the
frame continues for 2^32 touches. - 28. By Henrik Rydberg
-
Allow replay of device data through utouch-frame
This patch adds replay capabilities to test-mtdev.
If the specified device points to a valid evemu file,
the device properties will be extracted from that file
instead. Any appended event data will be replayed in
realtime. In practise, test-mtdev can be executed with
a test file.Signed-off-by: Henrik Rydberg <email address hidden>
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/frame