mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-09 13:05:24 +01:00
30 lines
615 B
C
30 lines
615 B
C
/****************************************************************************
|
|
* libwiigui Template
|
|
* Tantric 2009
|
|
*
|
|
* input.h
|
|
* Wii/GameCube controller management
|
|
***************************************************************************/
|
|
|
|
#ifndef _INPUT_H_
|
|
#define _INPUT_H_
|
|
|
|
#include <gccore.h>
|
|
#include <wiiuse/wpad.h>
|
|
|
|
#define PI 3.14159265f
|
|
#define PADCAL 50
|
|
|
|
extern int rumbleRequest[4];
|
|
|
|
void SetupPads();
|
|
void UpdatePads();
|
|
void ShutoffRumble();
|
|
void DoRumble(int i);
|
|
void SetWPADTimeout();
|
|
bool ControlActivityTimeout(void);
|
|
u32 wiidrc_to_wpad(u32 btns);
|
|
u32 wiidrc_to_pad(u32 btns);
|
|
|
|
#endif
|