aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-08-14 12:15:02 +0200
committerTeddy Wing2018-08-14 12:15:02 +0200
commitdbab68634814ebdabcc5dadfbc0bc2b82e5e112f (patch)
treeb700eb2df2f32806420d8d8988879f102050de7a
parent43b6f4aa4164c40cd090ce4f5fec917709889355 (diff)
downloadDomeKey-dbab68634814ebdabcc5dadfbc0bc2b82e5e112f.tar.bz2
Add `HeadphoneKey` class
This will be our delegate for the DDHID key listener.
-rw-r--r--DomeKey.xcodeproj/project.pbxproj6
-rw-r--r--DomeKey/HeadphoneKey.h13
-rw-r--r--DomeKey/HeadphoneKey.m13
3 files changed, 32 insertions, 0 deletions
diff --git a/DomeKey.xcodeproj/project.pbxproj b/DomeKey.xcodeproj/project.pbxproj
index 21fd27d..26605c5 100644
--- a/DomeKey.xcodeproj/project.pbxproj
+++ b/DomeKey.xcodeproj/project.pbxproj
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ D110C9482122E2D80094F963 /* HeadphoneKey.m in Sources */ = {isa = PBXBuildFile; fileRef = D110C9472122E2D80094F963 /* HeadphoneKey.m */; };
D160C2A12118EF9D007D1B50 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D160C2A02118EF9D007D1B50 /* main.m */; };
/* End PBXBuildFile section */
@@ -61,6 +62,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
+ D110C9462122E2D80094F963 /* HeadphoneKey.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HeadphoneKey.h; sourceTree = "<group>"; };
+ D110C9472122E2D80094F963 /* HeadphoneKey.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HeadphoneKey.m; sourceTree = "<group>"; };
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>"; };
@@ -97,6 +100,8 @@
D160C29F2118EF9D007D1B50 /* DomeKey */ = {
isa = PBXGroup;
children = (
+ D110C9462122E2D80094F963 /* HeadphoneKey.h */,
+ D110C9472122E2D80094F963 /* HeadphoneKey.m */,
D160C2A02118EF9D007D1B50 /* main.m */,
);
path = DomeKey;
@@ -216,6 +221,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ D110C9482122E2D80094F963 /* HeadphoneKey.m in Sources */,
D160C2A12118EF9D007D1B50 /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
diff --git a/DomeKey/HeadphoneKey.h b/DomeKey/HeadphoneKey.h
new file mode 100644
index 0000000..9a2e6d0
--- /dev/null
+++ b/DomeKey/HeadphoneKey.h
@@ -0,0 +1,13 @@
+//
+// HeadphoneKey.h
+// DomeKey
+//
+// Created by tw on 8/14/18.
+// Copyright © 2018 tw. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface HeadphoneKey : NSObject
+
+@end
diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m
new file mode 100644
index 0000000..af3b94c
--- /dev/null
+++ b/DomeKey/HeadphoneKey.m
@@ -0,0 +1,13 @@
+//
+// HeadphoneKey.m
+// DomeKey
+//
+// Created by tw on 8/14/18.
+// Copyright © 2018 tw. All rights reserved.
+//
+
+#import "HeadphoneKey.h"
+
+@implementation HeadphoneKey
+
+@end