Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Pair a game controller #120

Open
Altares opened this issue Jun 4, 2024 · 3 comments
Open

[FEATURE REQUEST] Pair a game controller #120

Altares opened this issue Jun 4, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Altares
Copy link

Altares commented Jun 4, 2024

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

  • I love the USB-HID proxy idea and I'll use it with my PC to connect my mouse and keyboard.
  • I still got to connect my game controller (DualSense) so I'll keep using my bluetooth dongle.
  • Would be great to unify the two in order to reduce interferences and as a bonus have less clutter and 1 less USB port being used.
    I'd love to know your opinion on this matter. I'm super pumped to try your solution as soon as possible, probably next WE (I just discovered the repo). Congrats 👏
@quaxalber
Copy link
Owner

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!

@quaxalber quaxalber added the enhancement New feature or request label Jun 5, 2024
@Altares
Copy link
Author

Altares commented Jun 5, 2024

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
Copy link
Author

Altares commented Jun 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants