Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] FFBeast Joystick and Rudder support #39

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ And that's basically it
1. MOZA R3, R5, R9, R12, R16, R21
2. Cammus C5, C12
3. VRS DirectForce Pro
4. FFBeast Wheel
4. FFBeast Wheel, Joystick, Rudder
5. ...

## What works?
Expand Down
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME="universal-pidff"
PACKAGE_VERSION="0.0.10"
PACKAGE_VERSION="0.0.11"
MAKE[0]="make KVERSION=$kernelver"
CLEAN="make clean"
BUILT_MODULE_NAME[0]="hid-universal-pidff"
Expand Down
6 changes: 4 additions & 2 deletions hid-ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#define USB_DEVICE_ID_VRS_DFP 0xa355

// FFBeast
#define USB_VENDOR_ID_FFBEAST 0x045b
#define USB_DEVICE_ID_FFBEAST_WHEEL 0x59d7
#define USB_VENDOR_ID_FFBEAST 0x045b
#define USB_DEVICE_ID_FFBEAST_WHEEL 0x59d7
#define USB_DEVICE_ID_FFBEAST_JOYSTICK 0x58f9
#define USB_DEVICE_ID_FFBEAST_RUDDER 0x5968

#endif
11 changes: 11 additions & 0 deletions hid-pidff-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ static const struct hid_device_id pidff_wheel_devices[] = {
| PIDFF_QUIRK_NO_PID_PARAM_BLOCK_OFFSET },
{ HID_USB_DEVICE(USB_VENDOR_ID_FFBEAST, USB_DEVICE_ID_FFBEAST_WHEEL),
.driver_data = PIDFF_QUIRK_NO_DELAY_EFFECT },
{ HID_USB_DEVICE(USB_VENDOR_ID_FFBEAST, USB_DEVICE_ID_FFBEAST_JOYSTICK),
.driver_data = PIDFF_QUIRK_NO_DELAY_EFFECT },
{ HID_USB_DEVICE(USB_VENDOR_ID_FFBEAST, USB_DEVICE_ID_FFBEAST_RUDDER),
.driver_data = PIDFF_QUIRK_NO_DELAY_EFFECT },
{ }
};
MODULE_DEVICE_TABLE(hid, pidff_wheel_devices);
Expand Down Expand Up @@ -154,6 +158,13 @@ static int universal_pidff_input_configured(struct hid_device *hdev,
input->absinfo[axis].maximum, 8, 0);
}

// Override fuzz on Y axis for FFBeast joystick
if (hdev->vendor == USB_VENDOR_ID_FFBEAST && hdev->product == USB_DEVICE_ID_FFBEAST_JOYSTICK) {
input_set_abs_params(input, ABS_Y,
input->absinfo[axis].minimum,
input->absinfo[axis].maximum, 0, 0);
}

return 0;
}

Expand Down