fceugx/source/button_mapping.h

43 lines
970 B
C
Raw Permalink Normal View History

2008-09-02 03:57:21 +02:00
/****************************************************************************
2009-07-22 04:05:49 +02:00
* FCE Ultra
2008-09-02 03:57:21 +02:00
* Nintendo Wii/Gamecube Port
*
* michniewski August 2008
2009-03-28 18:23:08 +01:00
* Tantric 2008-2009
2008-09-02 03:57:21 +02:00
*
* button_mapping.h
*
* Controller button mapping
****************************************************************************/
#ifndef BTN_MAP_H
#define BTN_MAP_H
enum {
CTRLR_NONE = -1,
CTRLR_GCPAD,
CTRLR_WIIMOTE,
2009-03-28 18:23:08 +01:00
CTRLR_NUNCHUK,
CTRLR_CLASSIC,
CTRLR_WUPC,
CTRLR_WIIDRC
2008-09-02 03:57:21 +02:00
};
const char ctrlrName[6][32] =
{ "GameCube Controller", "Wiimote", "Nunchuk + Wiimote", "Classic Controller", "Wii U Pro Controller", "Wii U Gamepad" };
2009-03-28 18:23:08 +01:00
2008-09-02 03:57:21 +02:00
typedef struct _btn_map {
u32 btn; // button 'id'
char* name; // button name
} BtnMap;
typedef struct _ctrlr_map {
u16 type; // controller type
int num_btns; // number of buttons on the controller
BtnMap map[15]; // controller button map
2008-09-02 03:57:21 +02:00
} CtrlrMap;
extern CtrlrMap ctrlr_def[6];
2008-09-02 03:57:21 +02:00
#endif