SameBoy/Cocoa/GBJoystickListener.h

10 lines
354 B
Objective-C
Raw Normal View History

2017-12-30 14:23:17 +00:00
#import <AppKit/AppKit.h>
@protocol GBJoystickListener <NSObject>
- (void) joystick:(NSString *)joystick_name button: (unsigned)button changedState: (bool) state;
- (void) joystick:(NSString *)joystick_name axis: (unsigned)axis movedTo: (signed) value;
2019-06-14 15:06:15 +00:00
- (void) joystick:(NSString *)joystick_name hat: (unsigned)hat changedState: (int8_t) value;
2017-12-30 14:23:17 +00:00
@end