input_mt_report_slot_state() ignores "tool" argument when the slot is closed, which has caused a bit of confusion. Let's introduce input_mt_report_slot_inactive() to report inactive slot state.
Showing the changes to include/linux (1 of 12 files). Show all
Unified · Split
| @@ -100,6 +100,11 @@ static inline bool input_is_mt_axis(int axis) · 99 unmodified lines | ||
| 100 | 100 | bool input_mt_report_slot_state(struct input_dev *dev, |
| 101 | 101 | unsigned int tool_type, bool active); |
| 102 | 102 | |
| 103 | +static inline void input_mt_report_slot_inactive(struct input_dev *dev) | |
| 104 | +{ | |
| 105 | + input_mt_report_slot_state(dev, 0, false); | |
| 106 | +} | |
| 107 | + | |
| 103 | 108 | void input_mt_report_finger_count(struct input_dev *dev, int count); |
| 104 | 109 | void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count); |
| 105 | 110 | void input_mt_drop_unused(struct input_dev *dev); |