aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-08-28 07:22:33 +0200
committerTeddy Wing2018-08-28 07:22:33 +0200
commit56caca057584ae08df0de632f216933b2740708f (patch)
treeb81c4d97397aa927e506a4e76bacc68f9eed5720
parent1ce8d21369531d74f5a311d866e2611e297c68ad (diff)
downloadDomeKey-56caca057584ae08df0de632f216933b2740708f.tar.bz2
HeadphoneKey.h: Use `HeadphoneButton` from `dome_key_map.h`
Instead of our custom enum, use the one generated from the Rust library now that we have it integrated with the project.
-rw-r--r--DomeKey/HeadphoneKey.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/DomeKey/HeadphoneKey.h b/DomeKey/HeadphoneKey.h
index 59c2b49..2a74fc1 100644
--- a/DomeKey/HeadphoneKey.h
+++ b/DomeKey/HeadphoneKey.h
@@ -9,17 +9,13 @@
#import <Foundation/Foundation.h>
#import <DDHidLib/DDHidAppleMikey.h>
+#import "dome_key_map.h"
+
typedef enum KeyPress : BOOL {
KeyPressDown = YES,
KeyPressUp = NO
} KeyPress;
-typedef enum HeadphoneButton : NSUInteger {
- HeadphoneButton_Play,
- HeadphoneButton_Up,
- HeadphoneButton_Down
-} HeadphoneButton;
-
static const unsigned int TIMEOUT_MILLISECONDS = 1000;
@interface HeadphoneKey : NSObject {