Skip to content

Commit

Permalink
Add deadzone report to ffb_rhino
Browse files Browse the repository at this point in the history
  • Loading branch information
walmis committed Oct 31, 2024
1 parent 6d7997b commit f872f47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions telemffb/hw/ffb_rhino.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
HID_REPORT_ID_DEVICE_CONTROL = 112
HID_REPORT_ID_DEVICE_GAIN = 113
HID_REPORT_ID_SET_CUSTOM_FORCE_OUTPUT_DATA = 114
HID_REPORT_ID_SET_DEADZONE = 115

HID_REPORT_ID_PID_STATE_REPORT = 2
HID_REPORT_ID_CREATE_EFFECT = 5
HID_REPORT_ID_PID_BLOCK_LOAD = 6
Expand Down Expand Up @@ -172,6 +174,14 @@ class FFBReport_SetEffect(BaseStructure):
_defaults_ = {"reportId": HID_REPORT_ID_SET_EFFECT, "gain":4096}


class FFBReport_SetDeadzone(BaseStructure):
_pack_ = 1
_fields_ = [
("reportId", ctypes.c_uint8),
("deadzone", ctypes.c_uint16),
]


class FFBReport_EffectOperation(BaseStructure):
_pack_ = 1
_fields_ = [("reportId", ctypes.c_uint8),
Expand Down

0 comments on commit f872f47

Please sign in to comment.