blob: ab6bf154657b0b012c2d540e5657b2048b4b3e05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "common.h"
#include "Pad.h"
CPad *CPad::Pads = (CPad*)0x6F0360;
uint16 *CPad::OldKeyState = (uint16*)0x6F1E70;
uint16 *CPad::NewKeyState = (uint16*)0x6E60D0;
uint16 *CPad::TempKeyState = (uint16*)0x774DE8;
CMouseControllerState &CPad::OldMouseControllerState = *(CMouseControllerState*)0x8472A0;
CMouseControllerState &CPad::NewMouseControllerState = *(CMouseControllerState*)0x8809F0;
CMouseControllerState &CPad::PCTempMouseControllerState = *(CMouseControllerState*)0x6F1E60;
void
CControllerState::Clear(void)
{
leftX = 0;
leftY = 0;
rightX = 0;
rightY = 0;
l1 = 0;
l2 = 0;
r1 = 0;
r2 = 0;
up = 0;
down = 0;
left = 0;
right = 0;
start = 0;
select = 0;
square = 0;
triangle = 0;
cross = 0;
circle = 0;
leftshock = 0;
rightshock = 0;
}
|