2008-09-16 07:42:21 +02:00
|
|
|
/****************************************************************************
|
2008-09-17 04:27:55 +02:00
|
|
|
* Visual Boy Advance GX
|
2008-09-16 07:42:21 +02:00
|
|
|
*
|
2008-09-17 04:27:55 +02:00
|
|
|
* Tantric September 2008
|
2008-09-16 07:42: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-04-08 09:08:12 +02:00
|
|
|
CTRLR_NUNCHUK,
|
2018-08-14 23:20:22 +02:00
|
|
|
CTRLR_CLASSIC,
|
|
|
|
CTRLR_WUPC
|
2008-09-16 07:42:21 +02:00
|
|
|
};
|
|
|
|
|
2018-08-14 23:20:22 +02:00
|
|
|
const char ctrlrName[5][0x20] =
|
|
|
|
{ "GameCube Controller", "Wiimote", "Nunchuk + Wiimote", "Classic Controller", "Wii U Pro Controller" };
|
2009-04-08 09:08:12 +02:00
|
|
|
|
2008-09-16 07:42:21 +02:00
|
|
|
typedef struct _btn_map {
|
|
|
|
u32 btn; // button 'id'
|
|
|
|
char* name; // button name
|
|
|
|
} BtnMap;
|
|
|
|
|
|
|
|
typedef struct _ctrlr_map {
|
2010-03-11 07:04:53 +01:00
|
|
|
BtnMap map[15]; // controller button map
|
2008-09-16 07:42:21 +02:00
|
|
|
int num_btns; // number of buttons on the controller
|
2010-01-25 08:36:48 +01:00
|
|
|
u16 type; // controller type
|
2008-09-16 07:42:21 +02:00
|
|
|
} CtrlrMap;
|
|
|
|
|
2018-08-14 23:20:22 +02:00
|
|
|
extern CtrlrMap ctrlr_def[5];
|
2008-09-16 07:42:21 +02:00
|
|
|
|
|
|
|
#endif
|