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); | |||
| 81 | int read_hwdata(struct HWData *hw, const struct input_event* ev); | 81 | int read_hwdata(struct HWData *hw, const struct input_event* ev); |
| 82 | void output_hwdata(const struct HWData *hw); | 82 | void output_hwdata(const struct HWData *hw); |
| 83 | 83 | ||
| 84 | static inline int finger_dist2(const struct FingerData *a, | ||
| 85 | const struct FingerData *b) | ||
| 86 | { | ||
| 87 | return dist2(a->position_x - b->position_x, | ||
| 88 | a->position_y - b->position_y); | ||
| 89 | } | ||
| 90 | |||
| 84 | #endif | 91 | #endif |
