Skip to content

Commit

Permalink
Check the click
Browse files Browse the repository at this point in the history
Adds a check to prevent sending full trigger input value unless the trigger click has been pressed (need exclude others controllers)
  • Loading branch information
ren2r committed Nov 29, 2020
1 parent ac4574e commit ab3739a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scc/drivers/sc_dongle.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ def __repr__(self):


def input(self, idata):
if idata.rtrig >= 253 and (idata.buttons & SCButtons.RT == 0):
idata = idata._replace(rtrig=253)

if idata.ltrig >= 253 and (idata.buttons & SCButtons.LT == 0):
idata = idata._replace(ltrig=253)

old_state, self._old_state = self._old_state, idata
if self.mapper:
if self._input_rotation_l:
Expand Down

0 comments on commit ab3739a

Please sign in to comment.