From: JengHyun Kang Date: Fri, 6 Jul 2018 06:19:48 +0000 (+0900) Subject: evdev: support ABS_MT_PRESSURE events X-Git-Tag: submit/tizen/20220208.100129~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b099d3699196ca9cf97edd7546a33fca11e2570f;p=platform%2Fupstream%2Flibinput.git evdev: support ABS_MT_PRESSURE events Change-Id: I9f7a4d4f6b463a396a3848059990b1a1f2174d23 --- diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c old mode 100644 new mode 100755 index f454547d..ce354939 --- a/src/evdev-fallback.c +++ b/src/evdev-fallback.c @@ -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;