Descriptionozone: evdev: Allow setting slot values in EventDeviceInfo
Currently we stub out TouchEventConverterEvdev::Initialize() in the
tests, but we now need to fix that because that's where we'll detect if a
device is MT-capable.
Initialize() looks up slot values, so we'll need to populate them from
captured device descriptions in CapabilitiesToDeviceInfo(). The initial
state is all zeroes except for tracking id (this matches kernel initial
slot state).
While we're here, clean up a bunch of the slot values setup & access
code in EventDeviceInfo.
BUG=461518
TEST=events_unittests
Committed: https://crrev.com/8765e8c490efe374ced20fe590ad75cbf0dc5089
Cr-Commit-Position: refs/heads/master@{#322580}
Patch Set 1 #Patch Set 2 : fix ABS_MT_TRACKING_ID init #Patch Set 3 : define ABS_MT_TOOL_Y if missing #
Messages
Total messages: 22 (12 generated)
|