Device: expose finger status in the API
Add a finger-status
property to devices, so that consumers can be informed and provide a feedback when the user touches a device or when the device is ready to accept a touch.
While the presence of FP_FINGER_STATUS_WAITING
may complicate things a bit I believe it's something that can be useful, while at this level I don't think we care much about notifying an AWAIT_REMOVAL
state.
The control on this should be left completely to the drivers, and this is not a mandatory property, although FpDevice
should take care of resetting the state in case a device doesn't do it.
Adapted image device to handle this transparently, and synaptics that can use it explicitly. The only other FpDevice
-based driver we have is upekts, but the protocol for that isn't clear enough to my eyes, and so I didn't implement this for it.
Added tests for image device, FpiDevice
and FpDevice
.