PojavLauncherTeam/PojavLauncher
在 GitHub 查看[BUG] Pause on Lost Focus setting is ignored
Open
#6,196 创建于 2024年10月24日
bughelp wantedwell written
仓库指标
- Star
- (5,279 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Describe the bug
The vanilla "pause on lost focus" setting is ignored when the app is backgrounded. This means things like AFK farms that require a button to be held down (such as Tree farms or AFK Fish farms, or walking while AFK) cannot be done in the background. A key can be held in the background either with a toggleable button, or with the F3+T trick. However, the actions stop as soon as the activity is in the background.
The log file and images/videos
Steps To Reproduce
1. Launch a 1.21.1 instance
2. Enter a singleplayer world
3. Disable Pause on Lost Focus (F3+P)
4. Background the app (without pausing or opening your inventory)
5. Return to the app, see that it is now paused.
6. You can also place down, say, a Noteblock and Button, toggle Right-click, and hear that the dinging stops in the background.
Expected Behavior
The app should be able to enter the background without an Escape key event being sent to the game.
Platform
- Device model: moto G(7)
- CPU architecture: arm64
- Android version: 13
- PojavLauncher version: foxglove-20240922-a6a6a29-v3_openjdk
Anything else?
No response