71 if (pad.getButtonPress(ButtonEnum::PS))
78 buttons.
triangle = pad.getButtonPress(ButtonEnum::TRIANGLE);
79 buttons.
circle = pad.getButtonPress(ButtonEnum::CIRCLE);
80 buttons.
cross = pad.getButtonPress(ButtonEnum::CROSS);
81 buttons.
square = pad.getButtonPress(ButtonEnum::SQUARE);
83 buttons.
up = pad.getButtonPress(ButtonEnum::UP);
84 buttons.
right = pad.getButtonPress(ButtonEnum::RIGHT);
85 buttons.
down = pad.getButtonPress(ButtonEnum::DOWN);
86 buttons.
left = pad.getButtonPress(ButtonEnum::LEFT);
88 buttons.
l1 = pad.getButtonPress(ButtonEnum::L1);
89 buttons.
r1 = pad.getButtonPress(ButtonEnum::R1);
91 buttons.
l2 = pad.getButtonPress(ButtonEnum::L2);
92 buttons.
r2 = pad.getButtonPress(ButtonEnum::R2);
94 buttons.
l3 = pad.getButtonPress(ButtonEnum::L3);
95 buttons.
r3 = pad.getButtonPress(ButtonEnum::R3);
97 buttons.
create = pad.getButtonPress(ButtonEnum::SHARE );
98 buttons.
option = pad.getButtonPress(ButtonEnum::START );
100 buttons.
touch = pad.getButtonPress(ButtonEnum::TOUCHPAD);
101 buttons.
mic = pad.getButtonPress(ButtonEnum::MICROPHONE);
104 buttons.
analogRightX = +(pad.getAnalogHat(AnalogHatEnum::RightHatX) - 128);
105 buttons.
analogRightY = -(pad.getAnalogHat(AnalogHatEnum::RightHatY) - 127);
107 buttons.
analogLeftX = +(pad.getAnalogHat(AnalogHatEnum::LeftHatX) - 128);
108 buttons.
analogLeftY = -(pad.getAnalogHat(AnalogHatEnum::LeftHatY) - 127);