Skip to content

Commit 2c7d4da

Browse files
committed
fix: controller inputs don't reset idle timer (closes #361)
1 parent 8afe0f5 commit 2c7d4da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/eu/midnightdust/midnightcontrols/client/MidnightInput.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ private void fetchTriggerInput(@NotNull GLFWGamepadState gamepadState, boolean l
334334

335335
public void handleButton(ButtonStorage storage) {
336336
if (this.controlsInput != null && this.controlsInput.getFocusedBinding() != null) {
337+
client.getFramerateLimitTracker().onInputReceived();
337338
if (storage.state == ButtonState.PRESS && !this.controlsInput.getCurrentButtons().contains(storage.button)) {
338339
this.controlsInput.getCurrentButtons().add(storage.button);
339340

0 commit comments

Comments
 (0)