diff --git a/build.rs b/build.rs index c3ccf9f..ec0c7a7 100644 --- a/build.rs +++ b/build.rs @@ -22,7 +22,7 @@ fn main() { build.include( "c_src/Karabiner-DriverKit-VirtualHIDDevice/include/pqrs/karabiner/driverkit", ); - build.include("c_src/Karabiner-DriverKit-VirtualHIDDevice/src/Client/vendor/include"); + build.include("c_src/Karabiner-DriverKit-VirtualHIDDevice/src/Daemon/vendor/include"); } } diff --git a/c_src/Karabiner-DriverKit-VirtualHIDDevice b/c_src/Karabiner-DriverKit-VirtualHIDDevice index 5919482..17fcfbe 160000 --- a/c_src/Karabiner-DriverKit-VirtualHIDDevice +++ b/c_src/Karabiner-DriverKit-VirtualHIDDevice @@ -1 +1 @@ -Subproject commit 59194825ce889d1f35acdd6bec1b9c5f5e9c74b3 +Subproject commit 17fcfbea7625df3e7fc1e6d048b70e568240add9 diff --git a/c_src/driverkit.cpp b/c_src/driverkit.cpp index cef9856..c8968dc 100644 --- a/c_src/driverkit.cpp +++ b/c_src/driverkit.cpp @@ -70,7 +70,9 @@ int init_sink() { client->connected.connect([copy] { std::cout << "connected" << std::endl; - copy->async_virtual_hid_keyboard_initialize(pqrs::hid::country_code::us); + pqrs::karabiner::driverkit::virtual_hid_device_service::virtual_hid_keyboard_parameters parameters; + parameters.set_country_code(pqrs::hid::country_code::us); + copy->async_virtual_hid_keyboard_initialize(parameters); }); client->closed.connect([] { std::cout << "closed" << std::endl; });