12#include "ps2s/types.h"
14#define scePadDmaBufferMax (256 / 16)
28static const unsigned int kSelect = 0,
30 kRightStickButton = 2,
48 CPad(
unsigned int port);
53 bool IsDown(
unsigned int button);
54 bool IsUp(
unsigned int button);
55 bool WasPushed(
unsigned int button);
56 bool WasReleased(
unsigned int button);
58 float RightStickX(
void) {
return CurStatus.rightStick.xPos; }
59 float RightStickY(
void) {
return CurStatus.rightStick.yPos; }
61 float LeftStickX(
void) {
return CurStatus.leftStick.xPos; }
62 float LeftStickY(
void) {
return CurStatus.leftStick.yPos; }
107 bool IsDown(
tPadStatus status,
unsigned int button);
108 bool IsUp(
tPadStatus status,
unsigned int button);
111 tU128 DmaBuffer[scePadDmaBufferMax] __attribute__((aligned(64)));
112 tPadStatus CurStatus __attribute__((aligned(16)));
113 tPadStatus LastStatus __attribute__((aligned(16)));