mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Added if to ignore more (for our purposes) useless keydowns
This commit is contained in:
parent
c00fb47236
commit
e3232dd754
@ -105,6 +105,8 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
}
|
||||
|
||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||
{
|
||||
if (!args.Repeat)
|
||||
{
|
||||
var sampleBank = Beatmap.ControlPointInfo.SoundPointAt(WorkingBeatmap.Track.CurrentTime).SampleBank ?? "normal";
|
||||
string sampleName = "";
|
||||
@ -116,6 +118,8 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
sampleName = "hitclap";
|
||||
|
||||
audio.Sample.Get($"Gameplay/{sampleBank}-{sampleName}")?.Play();
|
||||
}
|
||||
|
||||
return base.OnKeyDown(state, args);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user