Skip to content

Commit

Permalink
xpadneo, core: Remove explicit sync when not needed
Browse files Browse the repository at this point in the history
Sync is implicitly executed if there have been events on the affected
input device.

Maybe-fixes: atar-axis#460
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Mar 4, 2024
1 parent d2a3387 commit d593fa3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,6 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
/* Linux Gamepad Specification */
if (param_gamepad_compliance) {
input_report_abs(gamepad, usage->code, value - 32768);
/* no need to sync here */
goto stop_processing;
}
break;
Expand Down Expand Up @@ -968,7 +967,6 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
if (!keyboard)
goto keyboard_missing;
input_report_key(keyboard, BTN_SHARE, value);
input_sync(keyboard);
goto stop_processing;
} else if (xdata->xbox_button_down && (usage->type == EV_KEY)) {
if (!(xdata->quirks & XPADNEO_QUIRK_USE_HW_PROFILES)) {
Expand Down

0 comments on commit d593fa3

Please sign in to comment.