Skip to content

Commit

Permalink
[WIP] xpadneo, deadzones: Use smaller dead zone and fuzz
Browse files Browse the repository at this point in the history
These values have been determined experimentally on a medium worn
controller.

Fixes: atar-axis#231
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Jul 17, 2020
1 parent 4675a6e commit f54ce22
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 @@ -940,10 +940,10 @@ static int xpadneo_input_configured(struct hid_device *hdev, struct hid_input *h

if (param_gamepad_compliance) {
hid_info(hdev, "enabling compliance with Linux Gamepad Specification\n");
input_set_abs_params(xdata->idev, ABS_X, -32768, 32767, 255, 4095);
input_set_abs_params(xdata->idev, ABS_Y, -32768, 32767, 255, 4095);
input_set_abs_params(xdata->idev, ABS_RX, -32768, 32767, 255, 4095);
input_set_abs_params(xdata->idev, ABS_RY, -32768, 32767, 255, 4095);
input_set_abs_params(xdata->idev, ABS_X, -32768, 32767, 16, 2560);
input_set_abs_params(xdata->idev, ABS_Y, -32768, 32767, 16, 2560);
input_set_abs_params(xdata->idev, ABS_RX, -32768, 32767, 16, 2560);
input_set_abs_params(xdata->idev, ABS_RY, -32768, 32767, 16, 2560);
}

/* combine triggers to form a rudder, use ABS_MISC to order after dpad */
Expand Down

0 comments on commit f54ce22

Please sign in to comment.