evdev: support ABS_MT_PRESSURE events
authorJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 6 Jul 2018 06:19:48 +0000 (15:19 +0900)
committerjeon <jhyuni.kang@samsung.com>
Tue, 5 Jan 2021 10:39:43 +0000 (19:39 +0900)
Change-Id: I9f7a4d4f6b463a396a3848059990b1a1f2174d23

src/evdev-fallback.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f454547..ce35493
@@ -732,6 +732,11 @@ fallback_process_touch(struct fallback_dispatch *dispatch,
                if (dispatch->pending_event == EVDEV_NONE)
                        dispatch->pending_event = EVDEV_ABSOLUTE_MT;
                break;
+       case ABS_MT_PRESSURE:
+               dispatch->mt.slots[dispatch->mt.slot].pressure = e->value;
+               if (dispatch->pending_event == EVDEV_NONE)
+                       dispatch->pending_event = EVDEV_ABSOLUTE_MT;
+               break;
        default:
                fallback_process_touch_extra_aux_data(dispatch, device, e);
                break;