aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2019-03-22 22:35:09 +0100
committerTeddy Wing2019-03-22 22:35:09 +0100
commitf0ca208cd4d347a5273480a21ee05230b855c3e5 (patch)
treeee50be89bcdea139d99f6f3ac3482c27971a419d
parent943230d891282c4998f166f1cfd000def6b7f0a2 (diff)
downloadDomeKey-f0ca208cd4d347a5273480a21ee05230b855c3e5.tar.bz2
Add files for headphone events
A few files to abstract interaction with wired and Bluetooth headphones so that we can get events from both using a consistent interface in `HeadphoneKey`.
-rw-r--r--DomeKey.xcodeproj/project.pbxproj14
-rw-r--r--DomeKey/HeadphoneKeyEventBluetooth.h13
-rw-r--r--DomeKey/HeadphoneKeyEventBluetooth.m13
-rw-r--r--DomeKey/HeadphoneKeyEventDelegate.h13
-rw-r--r--DomeKey/HeadphoneKeyEventWired.h13
-rw-r--r--DomeKey/HeadphoneKeyEventWired.m13
6 files changed, 79 insertions, 0 deletions
diff --git a/DomeKey.xcodeproj/project.pbxproj b/DomeKey.xcodeproj/project.pbxproj
index 3b7b7ca..c97a7cb 100644
--- a/DomeKey.xcodeproj/project.pbxproj
+++ b/DomeKey.xcodeproj/project.pbxproj
@@ -15,6 +15,8 @@
D131C4D321663B6500801267 /* Mappings.m in Sources */ = {isa = PBXBuildFile; fileRef = D131C4D221663B6500801267 /* Mappings.m */; };
D160C2A12118EF9D007D1B50 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D160C2A02118EF9D007D1B50 /* main.m */; };
D18255B12180018C00ABC1E0 /* LicenseHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = D18255B02180018C00ABC1E0 /* LicenseHandler.m */; };
+ D1A5C607224581A900733BE2 /* HeadphoneKeyEventWired.m in Sources */ = {isa = PBXBuildFile; fileRef = D1A5C606224581A900733BE2 /* HeadphoneKeyEventWired.m */; };
+ D1A5C60A224581B800733BE2 /* HeadphoneKeyEventBluetooth.m in Sources */ = {isa = PBXBuildFile; fileRef = D1A5C609224581B800733BE2 /* HeadphoneKeyEventBluetooth.m */; };
D1C80CA021877E8200011088 /* Sounds.m in Sources */ = {isa = PBXBuildFile; fileRef = D1C80C9F21877E8200011088 /* Sounds.m */; };
D1EAA7A421803BB300A0AC35 /* XDG.m in Sources */ = {isa = PBXBuildFile; fileRef = D1EAA7A321803BB300A0AC35 /* XDG.m */; };
/* End PBXBuildFile section */
@@ -84,6 +86,11 @@
D160C31521197983007D1B50 /* DDHidLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DDHidLib.xcodeproj; path = lib/DDHidLib/DDHidLib.xcodeproj; sourceTree = "<group>"; };
D18255AF2180018C00ABC1E0 /* LicenseHandler.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LicenseHandler.h; sourceTree = "<group>"; };
D18255B02180018C00ABC1E0 /* LicenseHandler.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LicenseHandler.m; sourceTree = "<group>"; };
+ D1A5C6012245814900733BE2 /* HeadphoneKeyEventDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HeadphoneKeyEventDelegate.h; sourceTree = "<group>"; };
+ D1A5C605224581A800733BE2 /* HeadphoneKeyEventWired.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HeadphoneKeyEventWired.h; sourceTree = "<group>"; };
+ D1A5C606224581A900733BE2 /* HeadphoneKeyEventWired.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HeadphoneKeyEventWired.m; sourceTree = "<group>"; };
+ D1A5C608224581B800733BE2 /* HeadphoneKeyEventBluetooth.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HeadphoneKeyEventBluetooth.h; sourceTree = "<group>"; };
+ D1A5C609224581B800733BE2 /* HeadphoneKeyEventBluetooth.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HeadphoneKeyEventBluetooth.m; sourceTree = "<group>"; };
D1C80C9E21877E8200011088 /* Sounds.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Sounds.h; sourceTree = "<group>"; };
D1C80C9F21877E8200011088 /* Sounds.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Sounds.m; sourceTree = "<group>"; };
D1E1020C21350D4100B2CA29 /* dome_key_map.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = dome_key_map.h; path = "lib/dome-key-map/dome_key_map.h"; sourceTree = SOURCE_ROOT; };
@@ -138,6 +145,11 @@
D1EAA7A221803BB300A0AC35 /* XDG.h */,
D1EAA7A321803BB300A0AC35 /* XDG.m */,
D12B5B71218F31E200C6F7FC /* log.c */,
+ D1A5C6012245814900733BE2 /* HeadphoneKeyEventDelegate.h */,
+ D1A5C605224581A800733BE2 /* HeadphoneKeyEventWired.h */,
+ D1A5C606224581A900733BE2 /* HeadphoneKeyEventWired.m */,
+ D1A5C608224581B800733BE2 /* HeadphoneKeyEventBluetooth.h */,
+ D1A5C609224581B800733BE2 /* HeadphoneKeyEventBluetooth.m */,
);
path = DomeKey;
sourceTree = "<group>";
@@ -268,7 +280,9 @@
buildActionMask = 2147483647;
files = (
D12B5B76218F31E300C6F7FC /* log.c in Sources */,
+ D1A5C607224581A900733BE2 /* HeadphoneKeyEventWired.m in Sources */,
D131C4D321663B6500801267 /* Mappings.m in Sources */,
+ D1A5C60A224581B800733BE2 /* HeadphoneKeyEventBluetooth.m in Sources */,
D1EAA7A421803BB300A0AC35 /* XDG.m in Sources */,
D1C80CA021877E8200011088 /* Sounds.m in Sources */,
D110C9482122E2D80094F963 /* HeadphoneKey.m in Sources */,
diff --git a/DomeKey/HeadphoneKeyEventBluetooth.h b/DomeKey/HeadphoneKeyEventBluetooth.h
new file mode 100644
index 0000000..00577c3
--- /dev/null
+++ b/DomeKey/HeadphoneKeyEventBluetooth.h
@@ -0,0 +1,13 @@
+//
+// HeadphoneKeyEventBluetooth.h
+// DomeKey
+//
+// Created by tw on 3/22/19.
+// Copyright © 2019 tw. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface HeadphoneKeyEventBluetooth : NSObject
+
+@end
diff --git a/DomeKey/HeadphoneKeyEventBluetooth.m b/DomeKey/HeadphoneKeyEventBluetooth.m
new file mode 100644
index 0000000..3c02486
--- /dev/null
+++ b/DomeKey/HeadphoneKeyEventBluetooth.m
@@ -0,0 +1,13 @@
+//
+// HeadphoneKeyEventBluetooth.m
+// DomeKey
+//
+// Created by tw on 3/22/19.
+// Copyright © 2019 tw. All rights reserved.
+//
+
+#import "HeadphoneKeyEventBluetooth.h"
+
+@implementation HeadphoneKeyEventBluetooth
+
+@end
diff --git a/DomeKey/HeadphoneKeyEventDelegate.h b/DomeKey/HeadphoneKeyEventDelegate.h
new file mode 100644
index 0000000..8fd8eba
--- /dev/null
+++ b/DomeKey/HeadphoneKeyEventDelegate.h
@@ -0,0 +1,13 @@
+//
+// HeadphoneKeyEventDelegate.h
+// DomeKey
+//
+// Created by tw on 3/22/19.
+// Copyright © 2019 tw. All rights reserved.
+//
+
+#ifndef HeadphoneKeyEventDelegate_h
+#define HeadphoneKeyEventDelegate_h
+
+
+#endif /* HeadphoneKeyEventDelegate_h */
diff --git a/DomeKey/HeadphoneKeyEventWired.h b/DomeKey/HeadphoneKeyEventWired.h
new file mode 100644
index 0000000..f3dd630
--- /dev/null
+++ b/DomeKey/HeadphoneKeyEventWired.h
@@ -0,0 +1,13 @@
+//
+// HeadphoneKeyEventWired.h
+// DomeKey
+//
+// Created by tw on 3/22/19.
+// Copyright © 2019 tw. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface HeadphoneKeyEventWired : NSObject
+
+@end
diff --git a/DomeKey/HeadphoneKeyEventWired.m b/DomeKey/HeadphoneKeyEventWired.m
new file mode 100644
index 0000000..7245146
--- /dev/null
+++ b/DomeKey/HeadphoneKeyEventWired.m
@@ -0,0 +1,13 @@
+//
+// HeadphoneKeyEventWired.m
+// DomeKey
+//
+// Created by tw on 3/22/19.
+// Copyright © 2019 tw. All rights reserved.
+//
+
+#import "HeadphoneKeyEventWired.h"
+
+@implementation HeadphoneKeyEventWired
+
+@end