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,
|
2018-08-16 17:22:50 +02:00
|
|
|
CTRLR_CLASSIC,
|
2018-09-06 03:58:04 +02:00
|
|
|
CTRLR_WUPC,
|
|
|
|
CTRLR_WIIDRC
|
2008-09-02 03:57:21 +02:00
|
|
|
};
|
|
|
|
|
2018-09-06 03:58:04 +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
|
2010-03-11 07:02:06 +01:00
|
|
|
BtnMap map[15]; // controller button map
|
2008-09-02 03:57:21 +02:00
|
|
|
} CtrlrMap;
|
|
|
|
|
2018-09-06 03:58:04 +02:00
|
|
|
extern CtrlrMap ctrlr_def[6];
|
2008-09-02 03:57:21 +02:00
|
|
|
|
|
|
|
#endif
|