summaryrefslogtreecommitdiff
path: root/app/mac/controller-adapter.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-29 01:14:41 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-29 01:14:41 +0100
commit1d32f7561305d6c86b1c80858bc73d55b1c6c402 (patch)
treedb4be090c2403a7e09dcd4eb116c3ec4bf5af926 /app/mac/controller-adapter.hh
parentc1062208bb54cce8dffa04e9697ae124f271ecaf (diff)
(untested) game controller support
Diffstat (limited to 'app/mac/controller-adapter.hh')
-rw-r--r--app/mac/controller-adapter.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/mac/controller-adapter.hh b/app/mac/controller-adapter.hh
index d0fc33a..7a4c4b4 100644
--- a/app/mac/controller-adapter.hh
+++ b/app/mac/controller-adapter.hh
@@ -1,11 +1,16 @@
#pragma once
#import "nes/util/button-mask.hh"
+
#import <Foundation/Foundation.h>
+NS_ASSUME_NONNULL_BEGIN
+
/// Adapts inputs from a GCPhysicalInputProfile to a NES button mask.
@protocol ControllerAdapter <NSObject>
- (nes::button_mask)readPressedButtons;
-@end \ No newline at end of file
+@end
+
+NS_ASSUME_NONNULL_END \ No newline at end of file