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

Does this VirtualHIDDevice support Bluetooth keyboards? #12

Open
205g0 opened this issue Dec 3, 2020 · 4 comments
Open

Does this VirtualHIDDevice support Bluetooth keyboards? #12

205g0 opened this issue Dec 3, 2020 · 4 comments

Comments

@205g0
Copy link

205g0 commented Dec 3, 2020

From the Apple docs and why I ask:

image

@205g0 205g0 changed the title Does this Virtul Does this VirtualHIDDevice support Bluetooth keyboards? Dec 3, 2020
@tekezo
Copy link
Member

tekezo commented Dec 3, 2020

Karabiner-DriverKit-VirtualHIDDevice is not a driver for actual hardware.
So, it does not support both USB and Bluetooth transport.

If you are asking about Karabiner-Elements, it is compatible with both USB and Bluetooth keyboards.

@205g0
Copy link
Author

205g0 commented Dec 5, 2020

Karabiner-DriverKit-VirtualHIDDevice is not a driver for actual hardware.
So, it does not support both USB and Bluetooth transport.

So, I can't remap keys on my keyboard, modify my layout once, impacting both internal and external keyboards, eg. BT, with Apple's DriverKit or this VirtualHIDDevice?

If you are asking about Karabiner-Elements, it is compatible with both USB and Bluetooth keyboards.

How does Karabiner Elements then does this?

@tekezo
Copy link
Member

tekezo commented Dec 5, 2020

How does Karabiner Elements then does this?

IOKit provides a way to grab events and modify them. (kIOHIDOptionsTypeSeizeDevice)
https://github.com/pqrs-org/Karabiner-Elements/blob/master/docs/DEVELOPMENT.md#the-difference-of-event-grabbing-methods

You can use it instead of writing your keyboard driver unless you want to use keys which are not supported generic keyboard driver (e.g., multimedia keys on some third vendor keyboards.)

@205g0
Copy link
Author

205g0 commented Dec 13, 2020

You can use it instead of writing your keyboard driver

How is the latency of IOKit compared to DriverKit which grabs right the HID data?

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