mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 08:32:54 +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)
|
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||||
{
|
{
|
||||||
if (!readyButton.Enabled.Value)
|
if (e.Repeat)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
switch (e.Action)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
case GlobalAction.MultiplayerReady:
|
case GlobalAction.MultiplayerReady:
|
||||||
onReadyButtonClick();
|
readyButton.TriggerClick();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -109,7 +109,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
|
|
||||||
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||||
{
|
{
|
||||||
if (operationInProgress.Value)
|
if (e.Repeat)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
switch (e.Action)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
case GlobalAction.MultiplayerSpectate:
|
case GlobalAction.MultiplayerSpectate:
|
||||||
onClick();
|
button.TriggerClick();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user