Skip to content

Commit

Permalink
update on_hid_report_received with new report buttons format
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfrisby committed Oct 25, 2024
1 parent b8b664a commit bc61f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telemffb/hw/ffb_rhino.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def on_hid_report_received(self, report_id):
if report_id == HID_REPORT_ID_INPUT:
report: FFBReport_Input = self.get_input()

btns: int = report.Button | (report.ButtonAux << 32)
btns: int = report.Button0_31 | (report.Button32_47 << 32) | (report.Button48_63 << 48)

prev = self._button_state
self._button_state = btns
Expand Down

0 comments on commit bc61f07

Please sign in to comment.