diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-01-29 00:58:07 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-01-29 00:58:07 +0100 |
| commit | c1062208bb54cce8dffa04e9697ae124f271ecaf (patch) | |
| tree | 5d387dcb76ec26a87d7ecafb983939b359c8f11e /app/mac/scene.hh | |
| parent | 117f584b3f3d7945732a29848eb6d4ead1f57bee (diff) | |
use game controller api for input
Diffstat (limited to 'app/mac/scene.hh')
| -rw-r--r-- | app/mac/scene.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/mac/scene.hh b/app/mac/scene.hh index 1660e66..ed56f2f 100644 --- a/app/mac/scene.hh +++ b/app/mac/scene.hh @@ -1,12 +1,22 @@ #pragma once +#import "controller-adapter.hh" #import <SpriteKit/SpriteKit.h> +NS_ASSUME_NONNULL_BEGIN + @interface Scene : SKScene - (instancetype)initWithFilePath:(NSString*)filePath NS_DESIGNATED_INITIALIZER; + (instancetype)sceneWithSize:(CGSize)size NS_UNAVAILABLE; - (instancetype)initWithSize:(CGSize)size NS_UNAVAILABLE; +- (instancetype)initWithCoder:(NSCoder*)coder NS_UNAVAILABLE; +- (instancetype)init NS_UNAVAILABLE; + +@property (nonatomic, nullable) id<ControllerAdapter> primaryController; +@property (nonatomic, nullable) id<ControllerAdapter> secondaryController; + +@end -@end
\ No newline at end of file +NS_ASSUME_NONNULL_END
\ No newline at end of file |
