@@ 62,8 62,7 @@ mouse_poll(dev_mouse_t *dev, Uxn *u)
/* Calculate pressure using equation one,then scale down to 0-128.
* See the TSC2005 Datasheet. The value 280 below is the x plate resistance,
* sourced from the linux device tree. */
dev->pressure = tx * (tz2 - tz1) / tz1;
dev->pressure = dev->pressure * 280 / 4096 / 8;
dev->pressure = (tx * (tz2 - tz1) / tz1) * 280 / 4096 / 8;
/* This code is a bit of a bodge and probably has bugs.
* It is here to get touchscreen input to map nicely into uxn. */