提交 b32758c7 编写于 作者: S Stephane Chatty 提交者: Jiri Kosina

HID: fixed bug in single-touch emulation on the stantum panel

Fixed stupid copy-paste bug in touchscreen emulation for the Stantum multitouch
panel: a flag was reset just before being tested.
Signed-off-by: NStephane Chatty <chatty@enac.fr>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 eabe5c90
...@@ -147,7 +147,6 @@ static void stantum_filter_event(struct stantum_data *sd, ...@@ -147,7 +147,6 @@ static void stantum_filter_event(struct stantum_data *sd,
input_mt_sync(input); input_mt_sync(input);
sd->valid = false; sd->valid = false;
sd->first = false;
/* touchscreen emulation */ /* touchscreen emulation */
if (sd->first) { if (sd->first) {
...@@ -158,6 +157,7 @@ static void stantum_filter_event(struct stantum_data *sd, ...@@ -158,6 +157,7 @@ static void stantum_filter_event(struct stantum_data *sd,
input_event(input, EV_ABS, ABS_X, sd->x); input_event(input, EV_ABS, ABS_X, sd->x);
input_event(input, EV_ABS, ABS_Y, sd->y); input_event(input, EV_ABS, ABS_Y, sd->y);
} }
sd->first = false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册