mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 06:22:56 +08:00
Improve keybindings handling in multiplayer room
This commit is contained in:
parent
4a8295c49d
commit
e56aac170d
@ -256,7 +256,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
|
||||
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||
{
|
||||
if (!readyButton.Enabled.Value)
|
||||
if (e.Repeat)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -264,7 +264,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
switch (e.Action)
|
||||
{
|
||||
case GlobalAction.MultiplayerReady:
|
||||
onReadyButtonClick();
|
||||
readyButton.TriggerClick();
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
@ -109,7 +109,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
|
||||
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||
{
|
||||
if (operationInProgress.Value)
|
||||
if (e.Repeat)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -117,7 +117,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
switch (e.Action)
|
||||
{
|
||||
case GlobalAction.MultiplayerSpectate:
|
||||
onClick();
|
||||
button.TriggerClick();
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user