Skip to content

Conversation

@ShadowApex
Copy link
Collaborator

@ShadowApex ShadowApex commented Jul 5, 2025

This change moves the PowerSaver node, which manages screen dimming and suspend after inactivity, to the bottom of the scene tree in order to process gamepad inputs before anything else.

In Godot, the scene tree processes inputs in this order (https://docs.godotengine.org/en/stable/tutorials/inputs/inputevent.html#how-does-it-work):

image

Note

This should resolve issues with gamepad input, but it's possible that the PowerSaver will not see any input events if a user is playing a game using only using a mouse and keyboard. To resolve this, we use the GAMESCOPE_INPUT_COUNTER gamescope property to monitor how long ago mouse/keyboard activity happened.

Fixes #471

@ShadowApex ShadowApex requested a review from pastaq July 5, 2025 18:57
@ShadowApex ShadowApex force-pushed the shadowapex/fix-powersaver-input branch from 30094f0 to af215e0 Compare July 5, 2025 21:27
@DocMAX
Copy link

DocMAX commented Jul 6, 2025

thank you!

@ShadowApex ShadowApex merged commit f65839f into main Jul 6, 2025
2 checks passed
@ShadowApex ShadowApex deleted the shadowapex/fix-powersaver-input branch July 6, 2025 22:52
@github-actions
Copy link

github-actions bot commented Jul 6, 2025

🎉 This PR is included in version 0.40.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Steamdeck dimms screen while gaming

4 participants