mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
44 lines
990 B
C
44 lines
990 B
C
/****************************************************************************
|
|
* Snes9x Nintendo Wii/Gamecube Port
|
|
*
|
|
* softdev July 2006
|
|
* crunchy2 May-June 2007
|
|
* Michniewski 2008
|
|
* Tantric 2008-2023
|
|
*
|
|
* input.h
|
|
*
|
|
* Wii/Gamecube controller management
|
|
***************************************************************************/
|
|
|
|
#ifndef _INPUT_H_
|
|
#define _INPUT_H_
|
|
|
|
#include <gccore.h>
|
|
#include <wiiuse/wpad.h>
|
|
#include "utils/wiidrc.h"
|
|
|
|
#define PI 3.14159265f
|
|
#define PADCAL 50
|
|
#define WIIDRCCAL 20
|
|
#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);
|
|
void ShutoffRumble();
|
|
void DoRumble(int i);
|
|
void ReportButtons ();
|
|
void SetControllers ();
|
|
void SetDefaultButtonMap ();
|
|
bool MenuRequested();
|
|
void SetupPads();
|
|
void UpdatePads();
|
|
#ifdef HW_RVL
|
|
char* GetUSBControllerInfo();
|
|
#endif
|
|
|
|
#endif
|