diff options
| author | Teddy Wing | 2018-09-26 01:31:21 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-09-26 01:31:21 +0200 | 
| commit | 89c7c842ad803ddcbc56a70a19bb5984ce6c3770 (patch) | |
| tree | 51ca68c32ce33b375e2ce50f77a01df6ab6e6236 | |
| parent | 16ad9788c27e9fb038aa650b19c2c9ac507a0e1d (diff) | |
| download | DomeKey-89c7c842ad803ddcbc56a70a19bb5984ce6c3770.tar.bz2 | |
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.
| -rw-r--r-- | DomeKey/HeadphoneKey.m | 2 | 
1 files changed, 2 insertions, 0 deletions
| 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:) | 
