Browse Source

Fix issue with simulated input lag (#1535)

pull/1540/head^2
Garrett Cox 6 months ago committed by GitHub
parent
commit
d47746eab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libultraship/libultraship/Controller.cpp

2
libultraship/libultraship/Controller.cpp

@ -79,7 +79,7 @@ namespace Ship { @@ -79,7 +79,7 @@ namespace Ship {
padBuffer.push_front(padToBuffer);
if (pad != nullptr) {
*pad = padBuffer[std::min(padBuffer.size(), (size_t)CVar_GetS32("gSimulatedInputLag", 0))];
*pad = padBuffer[std::min(padBuffer.size() - 1, (size_t)CVar_GetS32("gSimulatedInputLag", 0))];
}
while (padBuffer.size() > 6) {

Loading…
Cancel
Save