pqrs-org / Karabiner-DriverKit-VirtualHIDDevice

The Unlicense
223 stars 27 forks source link

Does this VirtualHIDDevice support Bluetooth keyboards? #12

Open 205g0 opened 3 years ago

205g0 commented 3 years ago

From the Apple docs and why I ask:

image

tekezo commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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?