• spang's avatar
    ozone: evdev: Add absolute axis information to DeviceCapabilities · 4ff8f3ee
    spang authored
    We'll need this to do touchscreen (and other absolute) device testing
    with real event dumps as input since the axis information must be valid.
    
    Replace the shell script to capture capabilities with a python script,
    because the absolute axis bounds aren't exposed in sysfs. We have
    python-evdev on test images. Unfortunately it's a bit incomplete & buggy,
    so fall back to sysfs for the missing & incorrect bits.
    
    The "sw" field was accidently omitted previously and is now populated.
    
    BUG=none
    TEST=events_unittests
    
    Review URL: https://codereview.chromium.org/1019793011
    
    Cr-Commit-Position: refs/heads/master@{#322384}
    4ff8f3ee
event_device_test_util.h 1.96 KB