Skip to content

Commit ab3739a

Browse files
committed
Check the click
Adds a check to prevent sending full trigger input value unless the trigger click has been pressed (need exclude others controllers)
1 parent ac4574e commit ab3739a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scc/drivers/sc_dongle.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ def __repr__(self):
184184

185185

186186
def input(self, idata):
187+
if idata.rtrig >= 253 and (idata.buttons & SCButtons.RT == 0):
188+
idata = idata._replace(rtrig=253)
189+
190+
if idata.ltrig >= 253 and (idata.buttons & SCButtons.LT == 0):
191+
idata = idata._replace(ltrig=253)
192+
187193
old_state, self._old_state = self._old_state, idata
188194
if self.mapper:
189195
if self._input_rotation_l:

0 commit comments

Comments
 (0)