2008-08-12 05:25:16 +02:00
|
|
|
/****************************************************************************
|
2010-01-27 23:20:37 +01:00
|
|
|
* Snes9x Nintendo Wii/Gamecube Port
|
2008-08-12 05:25:16 +02:00
|
|
|
*
|
|
|
|
* michniewski August 2008
|
2018-12-27 00:10:12 +01:00
|
|
|
* Tantric 2008-2019
|
2008-08-12 05:25:16 +02:00
|
|
|
*
|
|
|
|
* button_mapping.h
|
|
|
|
*
|
|
|
|
* Controller button mapping
|
2008-09-12 07:28:40 +02:00
|
|
|
***************************************************************************/
|
2008-08-12 05:25:16 +02:00
|
|
|
|
2008-08-06 03:45:56 +02:00
|
|
|
#ifndef BTN_MAP_H
|
|
|
|
#define BTN_MAP_H
|
|
|
|
|
|
|
|
enum {
|
|
|
|
CTRLR_NONE = -1,
|
|
|
|
CTRLR_GCPAD,
|
|
|
|
CTRLR_WIIMOTE,
|
2009-03-11 18:28:37 +01:00
|
|
|
CTRLR_NUNCHUK,
|
2018-08-16 17:21:10 +02:00
|
|
|
CTRLR_CLASSIC,
|
2018-09-06 03:59:14 +02:00
|
|
|
CTRLR_WUPC,
|
|
|
|
CTRLR_WIIDRC
|
2008-08-06 03:45:56 +02:00
|
|
|
};
|
|
|
|
|
2018-09-06 03:59:14 +02:00
|
|
|
const char ctrlrName[6][32] =
|
|
|
|
{ "GameCube Controller", "Wiimote", "Nunchuk + Wiimote", "Classic Controller", "Wii U Pro Controller", "Wii U Gamepad" };
|
2009-03-11 18:28:37 +01:00
|
|
|
|
2008-08-06 03:45:56 +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
|
|
|
|
} CtrlrMap;
|
|
|
|
|
2018-09-06 03:59:14 +02:00
|
|
|
extern CtrlrMap ctrlr_def[6];
|
2008-08-06 03:45:56 +02:00
|
|
|
|
|
|
|
#endif
|