SameBoy/Cocoa/GBButtons.h

27 lines
441 B
Objective-C
Raw Permalink Normal View History

2016-04-13 19:43:16 +00:00
#ifndef GBButtons_h
#define GBButtons_h
typedef enum : NSUInteger {
GBRight,
GBLeft,
GBUp,
GBDown,
GBA,
GBB,
GBSelect,
GBStart,
GBTurbo,
GBRewind,
GBUnderclock,
2016-04-13 19:43:16 +00:00
GBButtonCount
} GBButton;
extern NSString const *GBButtonNames[GBButtonCount];
static inline NSString *button_to_preference_name(GBButton button)
{
return [NSString stringWithFormat:@"GB%@", GBButtonNames[button]];
}
#endif