diff options
author | Teddy Wing | 2018-08-27 11:21:37 +0200 |
---|---|---|
committer | Teddy Wing | 2018-08-27 11:21:37 +0200 |
commit | f3a108e3c8795af7694d2dbd9341b1fabbff9dd1 (patch) | |
tree | 795e6f34339c9bd433723b09c132d5d7791d2c8d | |
parent | 367a5ec9f9f1623bcb2761682066b9d52c4fd41e (diff) | |
download | DomeKey-f3a108e3c8795af7694d2dbd9341b1fabbff9dd1.tar.bz2 |
Add `KeyboardSimulator`
A new class that will know how to simulate key presses in order to
handle macros.
-rw-r--r-- | DomeKey.xcodeproj/project.pbxproj | 6 | ||||
-rw-r--r-- | DomeKey/KeyboardSimulator.h | 13 | ||||
-rw-r--r-- | DomeKey/KeyboardSimulator.m | 13 |
3 files changed, 32 insertions, 0 deletions
diff --git a/DomeKey.xcodeproj/project.pbxproj b/DomeKey.xcodeproj/project.pbxproj index ff696e3..da85841 100644 --- a/DomeKey.xcodeproj/project.pbxproj +++ b/DomeKey.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ D110C94A2122F1ED0094F963 /* libddhid.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D160C32221197983007D1B50 /* libddhid.a */; }; D11184622125206E00961687 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D11184612125206E00961687 /* AppDelegate.m */; }; D160C2A12118EF9D007D1B50 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D160C2A02118EF9D007D1B50 /* main.m */; }; + D1E101FE2133FA0300B2CA29 /* KeyboardSimulator.m in Sources */ = {isa = PBXBuildFile; fileRef = D1E101FD2133FA0300B2CA29 /* KeyboardSimulator.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -71,6 +72,8 @@ D160C29D2118EF9D007D1B50 /* DomeKey */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = DomeKey; sourceTree = BUILT_PRODUCTS_DIR; }; D160C2A02118EF9D007D1B50 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; D160C31521197983007D1B50 /* DDHidLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DDHidLib.xcodeproj; path = lib/DDHidLib/DDHidLib.xcodeproj; sourceTree = "<group>"; }; + D1E101FC2133FA0300B2CA29 /* KeyboardSimulator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeyboardSimulator.h; sourceTree = "<group>"; }; + D1E101FD2133FA0300B2CA29 /* KeyboardSimulator.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeyboardSimulator.m; sourceTree = "<group>"; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -107,6 +110,8 @@ children = ( D110C9462122E2D80094F963 /* HeadphoneKey.h */, D110C9472122E2D80094F963 /* HeadphoneKey.m */, + D1E101FC2133FA0300B2CA29 /* KeyboardSimulator.h */, + D1E101FD2133FA0300B2CA29 /* KeyboardSimulator.m */, D160C2A02118EF9D007D1B50 /* main.m */, D11184602125206E00961687 /* AppDelegate.h */, D11184612125206E00961687 /* AppDelegate.m */, @@ -231,6 +236,7 @@ D110C9482122E2D80094F963 /* HeadphoneKey.m in Sources */, D160C2A12118EF9D007D1B50 /* main.m in Sources */, D11184622125206E00961687 /* AppDelegate.m in Sources */, + D1E101FE2133FA0300B2CA29 /* KeyboardSimulator.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/DomeKey/KeyboardSimulator.h b/DomeKey/KeyboardSimulator.h new file mode 100644 index 0000000..bdd62b5 --- /dev/null +++ b/DomeKey/KeyboardSimulator.h @@ -0,0 +1,13 @@ +// +// KeyboardSimulator.h +// DomeKey +// +// Created by tw on 8/27/18. +// Copyright © 2018 tw. All rights reserved. +// + +#import <Foundation/Foundation.h> + +@interface KeyboardSimulator : NSObject + +@end diff --git a/DomeKey/KeyboardSimulator.m b/DomeKey/KeyboardSimulator.m new file mode 100644 index 0000000..f33601a --- /dev/null +++ b/DomeKey/KeyboardSimulator.m @@ -0,0 +1,13 @@ +// +// KeyboardSimulator.m +// DomeKey +// +// Created by tw on 8/27/18. +// Copyright © 2018 tw. All rights reserved. +// + +#import "KeyboardSimulator.h" + +@implementation KeyboardSimulator + +@end |