2009-09-30 19:10:58 -04:00
|
|
|
/****************************************************************************
|
|
|
|
* libwiigui Template
|
|
|
|
* Tantric 2009
|
|
|
|
*
|
|
|
|
* input.h
|
|
|
|
* Wii/GameCube controller management
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _INPUT_H_
|
|
|
|
#define _INPUT_H_
|
|
|
|
|
|
|
|
#include <gccore.h>
|
|
|
|
#include <wiiuse/wpad.h>
|
|
|
|
|
2011-07-25 18:28:22 -04:00
|
|
|
#define PI 3.14159265f
|
|
|
|
#define PADCAL 50
|
2009-09-30 19:10:58 -04:00
|
|
|
|
|
|
|
extern int rumbleRequest[4];
|
|
|
|
|
2010-09-17 13:48:16 -04:00
|
|
|
void SetupPads();
|
|
|
|
void UpdatePads();
|
2009-09-30 19:10:58 -04:00
|
|
|
void ShutoffRumble();
|
2010-09-23 20:48:03 -04:00
|
|
|
void DoRumble(int i);
|
2011-01-02 06:23:44 -03:00
|
|
|
void SetWPADTimeout();
|
2011-12-28 13:27:30 -03:00
|
|
|
bool ControlActivityTimeout(void);
|
2019-08-26 13:53:21 -04:00
|
|
|
u32 wiidrc_to_wpad(u32 btns);
|
|
|
|
u32 wiidrc_to_pad(u32 btns);
|
2009-09-30 19:10:58 -04:00
|
|
|
|
|
|
|
#endif
|