tablet: split detecting and updating the pressure offset
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 13 Jun 2023 02:49:05 +0000 (12:49 +1000)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Dec 2023 10:23:27 +0000 (19:23 +0900)
commit5acd6c2e42181087ee70a177b222bd7e61fdbb35
tree45ab5037402efb38ad1fa4ae0970e2730ab77020
parentff8aadac7ebff56097a91c2c9f243b6c165383be
tablet: split detecting and updating the pressure offset

detect_pressure_offset() would previously update an existing offset but
otherwise skip most of the work for any event other than proximity-in
events. This was too hidden, let's split this into two functions - one
to update an existing offset and another one to detect a new offset.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-tablet.c