summaryrefslogtreecommitdiff
path: root/app/mac/controller-adapter.hh
diff options
context:
space:
mode:
Diffstat (limited to 'app/mac/controller-adapter.hh')
-rw-r--r--app/mac/controller-adapter.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/mac/controller-adapter.hh b/app/mac/controller-adapter.hh
new file mode 100644
index 0000000..d0fc33a
--- /dev/null
+++ b/app/mac/controller-adapter.hh
@@ -0,0 +1,11 @@
+#pragma once
+
+#import "nes/util/button-mask.hh"
+#import <Foundation/Foundation.h>
+
+/// Adapts inputs from a GCPhysicalInputProfile to a NES button mask.
+@protocol ControllerAdapter <NSObject>
+
+- (nes::button_mask)readPressedButtons;
+
+@end \ No newline at end of file