mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-24 17:39:47 +00:00
25 lines
409 B
C
25 lines
409 B
C
#ifndef GBButtons_h
|
|
#define GBButtons_h
|
|
|
|
typedef enum : NSUInteger {
|
|
GBRight,
|
|
GBLeft,
|
|
GBUp,
|
|
GBDown,
|
|
GBA,
|
|
GBB,
|
|
GBSelect,
|
|
GBStart,
|
|
GBTurbo,
|
|
GBButtonCount
|
|
} GBButton;
|
|
|
|
extern NSString const *GBButtonNames[GBButtonCount];
|
|
|
|
static inline NSString *button_to_preference_name(GBButton button)
|
|
{
|
|
return [NSString stringWithFormat:@"GB%@", GBButtonNames[button]];
|
|
}
|
|
|
|
#endif
|