snes9xgx/source/input.h

44 lines
990 B
C
Raw Normal View History

/****************************************************************************
2010-01-27 23:20:37 +01:00
* Snes9x Nintendo Wii/Gamecube Port
*
* softdev July 2006
* crunchy2 May-June 2007
2008-09-23 06:13:33 +02:00
* Michniewski 2008
2021-01-06 21:13:32 +01:00
* Tantric 2008-2021
*
* input.h
*
* Wii/Gamecube controller management
***************************************************************************/
#ifndef _INPUT_H_
#define _INPUT_H_
#include <gccore.h>
2009-03-16 06:16:20 +01:00
#include <wiiuse/wpad.h>
#include "utils/wiidrc.h"
#define PI 3.14159265f
#define PADCAL 50
#define WIIDRCCAL 20
2008-09-27 09:13:52 +02:00
#define MAXJP 12 // # of mappable controller buttons
extern u32 btnmap[4][6][12];
extern int rumbleRequest[4];
extern int playerMapping[4];
void ResetControls(int cc = -1, int wc = -1);
2009-03-11 18:28:37 +01:00
void ShutoffRumble();
void DoRumble(int i);
2010-04-01 23:34:35 +02:00
void ReportButtons ();
void SetControllers ();
void SetDefaultButtonMap ();
bool MenuRequested();
2009-10-13 02:48:00 +02:00
void SetupPads();
void UpdatePads();
#ifdef HW_RVL
char* GetUSBControllerInfo();
#endif
#endif