From d5b3178ca184dee4b3116e5b569745d43dbe37ef Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 21 Mar 2010 14:57:42 +0100 Subject: Add support for the ABS_MT_PRESSURE event The kernel MT api was recently updated to include the ABS_MT_PRESSURE event. This patch adds it to the hardware structure. Signed-off-by: Henrik Rydberg --- src/hwdata.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/hwdata.c') diff --git a/src/hwdata.c b/src/hwdata.c index bd42710..9e384dc 100644 --- a/src/hwdata.c +++ b/src/hwdata.c @@ -81,6 +81,9 @@ int read_hwdata(struct HWData *hw, const struct input_event* ev) case ABS_MT_ORIENTATION: hw->finger[hw->nread].orientation = ev->value; break; + case ABS_MT_PRESSURE: + hw->finger[hw->nread].pressure = ev->value; + break; case ABS_MT_POSITION_X: hw->finger[hw->nread].position_x = ev->value; break; -- cgit v1.2.3