fceugx/source/button_mapping.h

41 lines
899 B
C
Raw 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
2008-09-02 03:57:21 +02:00
};
2009-03-28 18:23:08 +01:00
const char ctrlrName[4][20] =
{ "GameCube Controller", "Wiimote", "Nunchuk + Wiimote", "Classic Controller" };
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[4];
#endif