Skip to content

Fix volume adjust key repeat not working as expected#31282

Merged
bdach merged 2 commits intoppy:masterfrom
peppy:fix-volume-key-repeat
Dec 30, 2024
Merged

Fix volume adjust key repeat not working as expected#31282
bdach merged 2 commits intoppy:masterfrom
peppy:fix-volume-key-repeat

Conversation

@peppy
Copy link
Copy Markdown
Member

@peppy peppy commented Dec 26, 2024

Regressed in #31146.

Closes part of #31267.

We don't have an easy way to test key repeat in tests unfortunately.

@bdach bdach self-requested a review December 26, 2024 08:26
Comment thread osu.Game/OsuGame.cs
Comment on lines +1433 to +1435
case GlobalAction.DecreaseVolume:
case GlobalAction.IncreaseVolume:
return volume.Adjust(e.Action);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this block duplicated now? another copy of it is still there lower down

osu/osu.Game/OsuGame.cs

Lines 1447 to 1449 in e752531

case GlobalAction.DecreaseVolume:
case GlobalAction.IncreaseVolume:
return volume.Adjust(e.Action);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oversight from lack of self checks for sure

@bdach bdach self-requested a review December 30, 2024 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants