summaryrefslogtreecommitdiff
path: root/app/mac/view-controller.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-29 00:58:07 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-29 00:58:07 +0100
commitc1062208bb54cce8dffa04e9697ae124f271ecaf (patch)
tree5d387dcb76ec26a87d7ecafb983939b359c8f11e /app/mac/view-controller.hh
parent117f584b3f3d7945732a29848eb6d4ead1f57bee (diff)
use game controller api for input
Diffstat (limited to 'app/mac/view-controller.hh')
-rw-r--r--app/mac/view-controller.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/mac/view-controller.hh b/app/mac/view-controller.hh
new file mode 100644
index 0000000..4947b99
--- /dev/null
+++ b/app/mac/view-controller.hh
@@ -0,0 +1,17 @@
+#pragma once
+
+#import <Cocoa/Cocoa.h>
+#import <GameController/GameController.h>
+
+@interface ViewController : GCEventViewController
+
+- (instancetype)initWithFilePath:(NSString*)filePath NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithNibName:(NSString*)nibNameOrNil bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
+- (instancetype)initWithCoder:(NSCoder*)coder NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@property (readonly) NSSize minimumDisplaySize;
+@property (readonly) NSSize preferredDisplaySize;
+
+@end \ No newline at end of file