vbagx/source/button_mapping.h

41 lines
922 B
C
Raw Permalink Normal View History

/****************************************************************************
2008-09-17 04:27:55 +02:00
* Visual Boy Advance GX
*
2023-01-30 22:08:08 +01:00
* Tantric 2008-2023
*
* 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,
CTRLR_CLASSIC,
CTRLR_WUPC,
CTRLR_WIIDRC
};
const char ctrlrName[6][32] =
{ "GameCube Controller", "Wiimote", "Nunchuk + Wiimote", "Classic Controller", "Wii U Pro Controller", "Wii U Gamepad" };
2009-04-08 09:08:12 +02:00
typedef struct _btn_map {
u32 btn; // button 'id'
char* name; // button name
} BtnMap;
typedef struct _ctrlr_map {
BtnMap map[15]; // controller button map
int num_btns; // number of buttons on the controller
2010-01-25 08:36:48 +01:00
u16 type; // controller type
} CtrlrMap;
extern CtrlrMap ctrlr_def[6];
#endif