From a8a5fc9be239973db9ef4590669ae36d588bb4ef Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 27 Aug 2018 18:43:22 +0200 Subject: 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. --- lib/char_to_key_code.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/char_to_key_code.h (limited to 'lib/char_to_key_code.h') 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 + +NSString* keyCodeToString(CGKeyCode keyCode); +NSNumber* charToKeyCode(const char c); + +#endif /* char_to_key_code_h */ -- cgit v1.2.3