2008-09-12 07:28:40 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Snes9x 1.51 Nintendo Wii/Gamecube Port
|
|
|
|
*
|
|
|
|
* softdev July 2006
|
|
|
|
* crunchy2 May-June 2007
|
2008-09-23 06:13:33 +02:00
|
|
|
* Michniewski 2008
|
2008-09-12 07:28:40 +02:00
|
|
|
* Tantric September 2008
|
|
|
|
*
|
|
|
|
* input.h
|
|
|
|
*
|
|
|
|
* Wii/Gamecube controller management
|
|
|
|
***************************************************************************/
|
2008-08-20 06:07:38 +02:00
|
|
|
|
|
|
|
#ifndef _INPUT_H_
|
|
|
|
#define _INPUT_H_
|
|
|
|
|
|
|
|
#include <gccore.h>
|
|
|
|
|
|
|
|
#define PI 3.14159265f
|
|
|
|
#define PADCAL 50
|
2008-09-27 09:13:52 +02:00
|
|
|
#define MAXJP 12 // # of mappable controller buttons
|
2008-08-20 06:07:38 +02:00
|
|
|
|
|
|
|
extern unsigned int gcpadmap[];
|
|
|
|
extern unsigned int wmpadmap[];
|
|
|
|
extern unsigned int ccpadmap[];
|
|
|
|
extern unsigned int ncpadmap[];
|
|
|
|
extern unsigned int gcscopemap[];
|
|
|
|
extern unsigned int wmscopemap[];
|
|
|
|
extern unsigned int gcmousemap[];
|
|
|
|
extern unsigned int wmmousemap[];
|
|
|
|
extern unsigned int gcjustmap[];
|
|
|
|
extern unsigned int wmjustmap[];
|
|
|
|
|
2008-12-19 23:00:20 +01:00
|
|
|
void ResetControls();
|
2008-10-03 23:52:57 +02:00
|
|
|
s8 WPAD_Stick(u8 chan,u8 right, int axis);
|
2008-08-20 06:07:38 +02:00
|
|
|
void UpdateCursorPosition (int pad, int &pos_x, int &pos_y);
|
|
|
|
void decodepad (int pad);
|
|
|
|
void NGCReportButtons ();
|
|
|
|
void SetControllers ();
|
|
|
|
void SetDefaultButtonMap ();
|
|
|
|
|
|
|
|
#endif
|