2009-10-01 01:10:58 +02: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-26 00:28:22 +02:00
|
|
|
#define PI 3.14159265f
|
|
|
|
#define PADCAL 50
|
2009-10-01 01:10:58 +02:00
|
|
|
|
|
|
|
extern int rumbleRequest[4];
|
|
|
|
|
2010-09-17 19:48:16 +02:00
|
|
|
void SetupPads();
|
|
|
|
void UpdatePads();
|
2009-10-01 01:10:58 +02:00
|
|
|
void ShutoffRumble();
|
2010-09-24 02:48:03 +02:00
|
|
|
void DoRumble(int i);
|
2011-01-02 10:23:44 +01:00
|
|
|
void SetWPADTimeout();
|
2011-12-28 17:27:30 +01:00
|
|
|
bool ControlActivityTimeout(void);
|
2019-08-26 19:53:21 +02:00
|
|
|
u32 wiidrc_to_wpad(u32 btns);
|
|
|
|
u32 wiidrc_to_pad(u32 btns);
|
2009-10-01 01:10:58 +02:00
|
|
|
|
|
|
|
#endif
|