Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 469e5d6b authored by Harry Cutts's avatar Harry Cutts Committed by Android (Google) Code Review
Browse files

Merge "TouchpadInputMapper: set reports_pressure hardware property" into main

parents a5b9bd87 ce3c71e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -167,6 +167,10 @@ HardwareProperties createHardwareProperties(const InputDeviceContext& context) {
    // Linux Kernel haptic touchpad support isn't merged yet, so for now assume that no touchpads
    // are haptic.
    props.is_haptic_pad = false;

    RawAbsoluteAxisInfo absMtPressure;
    context.getAbsoluteAxisInfo(ABS_MT_PRESSURE, &absMtPressure);
    props.reports_pressure = absMtPressure.valid;
    return props;
}