We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57ba35 commit 0d31521Copy full SHA for 0d31521
scc/drivers/steamdeck.py
@@ -185,14 +185,14 @@ def on_serial_got(self):
185
self._id = f"deck{self._serial}"
186
self.set_input_interrupt(ENDPOINT, 64, self._on_input)
187
188
- def _on_input(self, endpoint, data):
+ def _on_input(self, endpoint: int, data: bytearray) -> None:
189
if not self._ready:
190
self.daemon.add_controller(self)
191
self.configure()
192
self._ready = True
193
194
self._old_state, self._input = self._input, self._old_state
195
- ctypes.memmove(ctypes.addressof(self._input), data, len(data))
+ ctypes.memmove(ctypes.addressof(self._input), bytes(data), len(data))
196
if self._input.seq % UNLIZARD_INTERVAL == 0:
197
# Keeps lizard mode from happening
198
self.clear_mappings()
0 commit comments