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; }
72 uint16_t leftRight : 1;
73 uint16_t leftDown : 1;
74 uint16_t leftLeft : 1;
82 uint16_t rightRight : 1;
83 uint16_t rightDown : 1;
84 uint16_t rightLeft : 1;
89 uint8_t xCenter, yCenter;
103 uint8_t whoKnows[12];
107 bool IsDown(
tPadStatus status,
unsigned int button);
108 bool IsUp(
tPadStatus status,
unsigned int button);
111 uint128_t DmaBuffer[scePadDmaBufferMax] __attribute__((aligned(64)));
112 tPadStatus CurStatus __attribute__((aligned(16)));
113 tPadStatus LastStatus __attribute__((aligned(16)));