summaryrefslogtreecommitdiff
path: root/app/mac/controller-adapter.hh
blob: 7a4c4b4bb05f6ddee577d14159534998c3c7a866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

NS_ASSUME_NONNULL_END