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: Passthrough BLE mouse to selected output #2395

Open
NilsIrl opened this issue Jul 30, 2024 · 1 comment
Open

Feature request: Passthrough BLE mouse to selected output #2395

NilsIrl opened this issue Jul 30, 2024 · 1 comment

Comments

@NilsIrl
Copy link

NilsIrl commented Jul 30, 2024

Effectively turn a zmk keyboard into a BLE KVM switch.

Currently when using a zmk keyboard with multiple BLE outputs when switching output for the keyboard other peripherals like mice obviously do not follow the output selection which means that multiple mice need to be used or a separate KVM switch. It would be cool to be able to connect a BLE mouse to a zmk keyboard and have the keyboard forward the events to the selected output.

Tips from @petejohanson on discord for someone who would want to have a crack at this:

You'd need to look at creating a GATT client that scans for and connects to the pointer.
Then subscribes to the right HID Over GATT (HoG) characteristics to recieve HID data, and the process/forward on our HID side.
You can see our split central code for examples of scanning/GATT discovery, etc.

This module can relay input for another zmk device: https://github.com/badjeff/zmk-split-peripheral-input-relay

@xudongzheng
Copy link
Contributor

Related: #1732

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

No branches or pull requests

2 participants