I have a specific problem - I would like to recognize source device of input events in my program.
Let's assume, that I have two identical touchscreens attached to usb ports. My program is grabbing XButtonPressedEvent
, XButtonReleaseEvent
etc. but I would like to behave differently between events generated by first device and events generated by second device. I would like to match any of event fields to devices descriptor, devices xinput id, devices system id, or anything else identifying device.
Is it possible to implement?
If so I would appreciate any hints of how to do this.
Best Regards, PG!
xinput_calibrator
that would give me as an output calibration matrix and identifier of device for many identical touchscreens. The assumptions are, that touchscreens are completely decalibrated, so recognition based on coordinates is not a solution.