quaxalber / bluetooth_2_usb

Convert a Raspberry Pi into a HID relay that translates Bluetooth keyboard and mouse input to USB. Minimal configuration. Zero hassle.
MIT License
21 stars 5 forks source link

[FEATURE REQUEST] Pair a game controller #120

Open Altares opened 1 month ago

Altares commented 1 month ago

Not sure if this makes sense in terms of latency but here goes my use case:

quaxalber commented 1 month ago

Hey there! Glad to see you enjoy the project.

I do like the idea - just can't give you an honest estimate on when I might be able to implement it.

Apparantly there are issues with the mouse in the current build - especially on Windows. Would be curious to hear how it works for you in #117

Thank you for your contribution!

Altares commented 1 month ago

Hey there! Glad to see you enjoy the project.

I do like the idea - just can't give you an honest estimate on when I might be able to implement it.

Apparantly there are issues with the mouse in the current build - especially on Windows. Would be curious to hear how it works for you in #117

Thank you for your contribution!

Of course, I'll make sure to report back after I do some testing.

Altares commented 3 weeks ago

As promised, I installed the repo on my piZeroW2 with bookworm 64bits lite. I've got the same issue #116 Here's my output:

admin@zero2w:~ $ service bluetooth_2_usb status bluetooth_2_usb.service - Bluetooth to USB HID relay Loaded: loaded (/etc/systemd/system/bluetooth_2_usb.service; enabled; preset: enabled) Active: active (running) since Sat 2024-06-08 15:13:05 BST; 1min 59s ago Main PID: 581 (bash) Tasks: 2 (limit: 174) CPU: 5.068s CGroup: /system.slice/bluetooth_2_usb.service ├─581 bash /usr/bin/bluetooth_2_usb --auto_discover --grab_devices └─588 python3.11 /home/admin/bluetooth_2_usb/bluetooth_2_usb.py --auto_discover --grab_devices

Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: relay = DeviceRelay(device, self._grab_devices) Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: File "/home/admin/bluetooth_2_usb/src/bluetooth_2_usb/relay.py", line 120, in init Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: init_usb_gadgets() Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: File "/home/admin/bluetooth_2_usb/src/bluetooth_2_usb/relay.py", line 46, in init_usb_gadgets Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: usb_hid.enable( Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: File "/home/admin/bluetooth_2_usb/venv/lib/python3.11/site-packages/usb_hid.py", line 758, in enable Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: udc = next(Path("/sys/class/udc/").glob("*")) Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jun 08 15:15:04 zero2w bluetooth_2_usb[588]: StopIteration