How do I query for the features that an Android touchscreen supports? In particular, I want to know whether yet-to-be-received input on the screen will emit values for pressure, major axis width, and minor axis width.
I'm not doing this to limit my app to installation on specific devices, but instead to test my software, which detects specialized gestures. I know that I can determine whether the device has emitted axes or pressure upon receiving input, but I'm generated log files in advance of testing that need to report expectations during the test (to simplify things a bit).
The answer to this question appears to involve the InputDevice class, but I don't see how to use this class to get the information.
(Note: I found a related question, but mine is more general: determining the features supported by the device's screen. People might also dismiss that question because the determination can be made after receiving input.)