mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
Input: maplecontrol - emit EV_SYN report after reporting events
The driver decodes controller packets and reports button presses and
axis positions in dc_pad_callback(), but never calls input_sync() to
signal completion of the input report frame. Consequently, events
remain pending without waking up userspace readers.
Emit an EV_SYN/SYN_REPORT event after reporting buttons and axis states.
Fixes: 01461d7e65 ("Input: add support for Maple controller as a joystick")
Reported-by: sashiko-bot@kernel.org
Closes: https://lore.kernel.org/r/20260704061045.036701F000E9@smtp.kernel.org
Assisted-by: LLM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
dbb660ccc9
commit
2f201770cd
|
|
@ -58,6 +58,8 @@ static void dc_pad_callback(struct mapleq *mq)
|
|||
input_report_abs(dev, ABS_Y, res[13]);
|
||||
input_report_abs(dev, ABS_RX, res[14]);
|
||||
input_report_abs(dev, ABS_RY, res[15]);
|
||||
|
||||
input_sync(dev);
|
||||
}
|
||||
|
||||
static int dc_pad_open(struct input_dev *dev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user