diff options
Diffstat (limited to 'src/hwdata.h')
-rw-r--r-- | src/hwdata.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hwdata.h b/src/hwdata.h index 15a9fcb..5dd99cf 100644 --- a/src/hwdata.h +++ b/src/hwdata.h @@ -81,4 +81,11 @@ void init_hwdata(struct HWData *hw); int read_hwdata(struct HWData *hw, const struct input_event* ev); void output_hwdata(const struct HWData *hw); +static inline int finger_dist2(const struct FingerData *a, + const struct FingerData *b) +{ + return dist2(a->position_x - b->position_x, + a->position_y - b->position_y); +} + #endif |