我想使用 Gamesir T1d 游戏手柄(蓝牙)在 Raspberry Pi 3 B+(Buster)上使用 Python 读取它的命令。
我可以通过蓝牙连接游戏手柄:
[CHG] Device C6:86:A1:04:BB:53 RSSI: -78
[bluetooth]# connect C6:86:A1:04:BB:53
Attempting to connect to C6:86:A1:04:BB:53
[CHG] Device C6:86:A1:04:BB:53 Connected: yes
Connection successful
[CHG] Device C6:86:A1:04:BB:53 ServicesResolved: yes
[Gamesir-T1d-BB53]# pair C6:86:A1:04:BB:53
Attempting to pair with C6:86:A1:04:BB:53
[CHG] Device C6:86:A1:04:BB:53 Paired: yes
Pairing successful
[Gamesir-T1d-BB53]# info
Device C6:86:A1:04:BB:53 (random)
Name: Gamesir-T1d-BB53
Alias: Gamesir-T1d-BB53
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Unknown (00008650-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v000Dp0000d0110
RSSI: -78
[Gamesir-T1d-BB53]#
但是,没有在下创建事件
/dev/input/
我需要阅读游戏手柄的命令并将其映射到 Python 中。
连接蓝牙鼠标时,我可以看到正在创建的事件,所以这似乎是特定于游戏手柄的问题。
我已经在尝试 xboxdrv,但没有成功,可能是因为 gamesir 未列为受支持的设备?此外,如果这只是缺少驱动程序问题,或者如果有通用驱动程序可以工作,或者这根本是驱动程序问题,我没有胶水。
我在这里缺少什么?