History

Input: introduce input_mt_report_slot_inactive()

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.

Jiada Wang committed 6 years ago

Commit 5fc70e31 parent c9c457012 files · +21 −21Browse files

Showing the changes to include/linux (1 of 12 files). Show all

Unified · Split

include/linux/input/mt.h+5−0
@@ -100,6 +100,11 @@ static inline bool input_is_mt_axis(int axis) · 99 unmodified lines
100100 bool input_mt_report_slot_state(struct input_dev *dev,
101101 unsigned int tool_type, bool active);
102102
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+
103108 void input_mt_report_finger_count(struct input_dev *dev, int count);
104109 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count);
105110 void input_mt_drop_unused(struct input_dev *dev);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t