summaryrefslogtreecommitdiff
path: root/app/mac/controller-adapter-gamepad.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-gamepad.hh
parentc1062208bb54cce8dffa04e9697ae124f271ecaf (diff)
(untested) game controller support
Diffstat (limited to 'app/mac/controller-adapter-gamepad.hh')
-rw-r--r--app/mac/controller-adapter-gamepad.hh18
1 files changed, 10 insertions, 8 deletions
diff --git a/app/mac/controller-adapter-gamepad.hh b/app/mac/controller-adapter-gamepad.hh
index 14bfeae..c0caeed 100644
--- a/app/mac/controller-adapter-gamepad.hh
+++ b/app/mac/controller-adapter-gamepad.hh
@@ -1,16 +1,18 @@
-//
-// Created by Hannes Schulze on 29.01.25.
-//
+#pragma once
-#ifndef NES_CONTROLLER_ADAPTER_GAMEPAD_HH
-#define NES_CONTROLLER_ADAPTER_GAMEPAD_HH
+#import "controller-adapter.hh"
+#import <GameController/GameController.h>
+NS_ASSUME_NONNULL_BEGIN
-class ControllerAdapterGamepad {
+@interface ControllerAdapterGamepad : NSObject <ControllerAdapter>
-};
+- (instancetype)initWithProfile:(GCExtendedGamepad*)profile;
+- (instancetype)init NS_UNAVAILABLE;
+@property (readonly) GCExtendedGamepad* profile;
+@end
-#endif //NES_CONTROLLER_ADAPTER_GAMEPAD_HH
+NS_ASSUME_NONNULL_END \ No newline at end of file