Skip to content

Commit

Permalink
xpadneo, core: Fix coding style
Browse files Browse the repository at this point in the history
Fixes: commit 0001e48 ("xpadneo: Add paddles support")
Signed-off-by: Kai Krakow <kai@kaishome.de>
  • Loading branch information
kakra committed Nov 24, 2024
1 parent 1eb7d45 commit 289d3bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,10 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
if ((usage->type == EV_KEY) && (usage->code == BTN_PADDLES(0))) {
if (gamepad && xdata->profile == 0) {
/* report the paddles individually */
input_report_key(gamepad, BTN_PADDLES(0), value & 1 ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(1), value & 2 ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(2), value & 4 ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(3), value & 8 ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(0), (value & 1) ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(1), (value & 2) ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(2), (value & 4) ? 1 : 0);
input_report_key(gamepad, BTN_PADDLES(3), (value & 8) ? 1 : 0);
xdata->gamepad_sync = true;
}
goto stop_processing;
Expand Down

0 comments on commit 289d3bf

Please sign in to comment.