default button pressure to 0 (#3938)

This should solve the issue where buttons are held down until you push
them the same time. This would cause the cars in jak 3 to not move until
you pushed square/circle and "released" the brake.

Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
water111
2025-06-01 21:15:09 -04:00
committed by GitHub
parent 882c45f077
commit 653604080f
+1 -1
View File
@@ -96,7 +96,7 @@ struct PadData {
std::array<bool, 16> button_data = {false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false};
std::array<u8, 12> pressure_data = {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255};
std::array<u8, 12> pressure_data = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
// Normal Buttons
bool select() const { return button_data.at(static_cast<int>(ButtonIndex::SELECT)); };