mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
40 lines
840 B
C
40 lines
840 B
C
/****************************************************************************
|
|
* Snes9x 1.50
|
|
*
|
|
* Nintendo Wii/Gamecube Port
|
|
* michniewski August 2008
|
|
*
|
|
* button_mapping.h
|
|
*
|
|
* Controller button mapping
|
|
****************************************************************************/
|
|
|
|
#ifndef BTN_MAP_H
|
|
#define BTN_MAP_H
|
|
|
|
enum {
|
|
CTRLR_NONE = -1,
|
|
CTRLR_NUNCHUK,
|
|
CTRLR_CLASSIC,
|
|
CTRLR_GCPAD,
|
|
CTRLR_WIIMOTE,
|
|
CTRLR_SNES = 7 // give some other value for the snes padmap
|
|
};
|
|
|
|
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;
|
|
|
|
// externs:
|
|
|
|
extern CtrlrMap ctrlr_def[4];
|
|
|
|
#endif
|