diff options
author | Teddy Wing | 2018-08-27 18:43:22 +0200 |
---|---|---|
committer | Teddy Wing | 2018-08-27 18:43:22 +0200 |
commit | a8a5fc9be239973db9ef4590669ae36d588bb4ef (patch) | |
tree | 7e271022c5fbf8e9ac2f0e3b64204fe74f8a89f3 /lib | |
parent | ecdb7fa83d0d27ad787ce63e14803aa2b8915253 (diff) | |
download | DomeKey-a8a5fc9be239973db9ef4590669ae36d588bb4ef.tar.bz2 |
Add char_to_key_code.h header file
Make a corresponding header file for `char_to_key_code.m`. This enables
us to include those functions in other source files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/char_to_key_code.h | 17 | ||||
-rw-r--r-- | lib/char_to_key_code.m | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lib/char_to_key_code.h b/lib/char_to_key_code.h new file mode 100644 index 0000000..40c0c10 --- /dev/null +++ b/lib/char_to_key_code.h @@ -0,0 +1,17 @@ +// +// char_to_key_code.h +// DomeKey +// +// Created by tw on 8/27/18. +// Copyright © 2018 tw. All rights reserved. +// + +#ifndef char_to_key_code_h +#define char_to_key_code_h + +#import <Carbon/Carbon.h> + +NSString* keyCodeToString(CGKeyCode keyCode); +NSNumber* charToKeyCode(const char c); + +#endif /* char_to_key_code_h */ diff --git a/lib/char_to_key_code.m b/lib/char_to_key_code.m index 210536d..ab4da15 100644 --- a/lib/char_to_key_code.m +++ b/lib/char_to_key_code.m @@ -1,4 +1,4 @@ -#import <Carbon/Carbon.h> +#import "char_to_key_code.h" // Théo Winterhalter // https://stackoverflow.com/users/1275975/th%c3%a9o-winterhalter |