Skip to content

Commit e464f9e

Browse files
committed
Fix DualSense(PS5)
1 parent bc9d659 commit e464f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scc/drivers/ds5drv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ def _load_hid_descriptor(self, config, max_size, vid, pid, test_mode):
342342

343343
self._packet_size = 64
344344

345-
def input(self, endpoint, data):
345+
def input(self, endpoint: int, data: bytearray) -> None:
346346
# Special override for CPAD touch button
347-
if _lib.decode(ctypes.byref(self._decoder), data):
347+
if _lib.decode(ctypes.byref(self._decoder), bytes(data)):
348348
if self.mapper:
349349
if data[33] >> 7:
350350
# cpad is not touched

0 commit comments

Comments
 (0)