From 89c7c842ad803ddcbc56a70a19bb5984ce6c3770 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 26 Sep 2018 01:31:21 +0200 Subject: HeadphoneKey: Load MapGroup into `_state`; Initialize Rust logger This will load the map group from the mapping config file in the XDG config directory. Rust errors get logged to stderr. --- DomeKey/HeadphoneKey.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m index eff43c6..9d3a9fb 100644 --- a/DomeKey/HeadphoneKey.m +++ b/DomeKey/HeadphoneKey.m @@ -17,6 +17,8 @@ _key_buffer = [[NSMutableArray alloc] initWithCapacity:5]; _in_mode = NULL; _state = state_new(); + logger_init(); + state_load_map_group(_state); _mikeys = [DDHidAppleMikey allMikeys]; [_mikeys makeObjectsPerformSelector:@selector(setDelegate:) -- cgit v1.2.3