mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +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)
|
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
|
||||||
|
{
|
||||||
|
if (!args.Repeat)
|
||||||
{
|
{
|
||||||
var sampleBank = Beatmap.ControlPointInfo.SoundPointAt(WorkingBeatmap.Track.CurrentTime).SampleBank ?? "normal";
|
var sampleBank = Beatmap.ControlPointInfo.SoundPointAt(WorkingBeatmap.Track.CurrentTime).SampleBank ?? "normal";
|
||||||
string sampleName = "";
|
string sampleName = "";
|
||||||
@ -116,6 +118,8 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
sampleName = "hitclap";
|
sampleName = "hitclap";
|
||||||
|
|
||||||
audio.Sample.Get($"Gameplay/{sampleBank}-{sampleName}")?.Play();
|
audio.Sample.Get($"Gameplay/{sampleBank}-{sampleName}")?.Play();
|
||||||
|
}
|
||||||
|
|
||||||
return base.OnKeyDown(state, args);
|
return base.OnKeyDown(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user