projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e9b2e0
)
evdev: support ABS_MT_PRESSURE events
author
JengHyun Kang
<jhyuni.kang@samsung.com>
Fri, 6 Jul 2018 06:19:48 +0000
(15:19 +0900)
committer
Duna Oh
<duna.oh@samsung.com>
Mon, 7 Feb 2022 16:07:27 +0000
(
01:07
+0900)
Change-Id: I9f7a4d4f6b463a396a3848059990b1a1f2174d23
src/evdev-fallback.c
[changed mode: 0644->0755]
patch
|
blob
|
history
diff --git
a/src/evdev-fallback.c
b/src/evdev-fallback.c
old mode 100644
(file)
new mode 100755
(executable)
index
f454547
..
ce35493
--- 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;