mirror of
https://github.com/osukey/osukey.git
synced 2025-05-02 20:27:27 +09:00
33 lines
956 B
C#
33 lines
956 B
C#
using System;
|
|
using OpenTK.Input;
|
|
using osu.Framework.GameModes.Testing;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
namespace osu.Desktop.Tests
|
|
{
|
|
class TestCaseKeyCounter : TestCase
|
|
{
|
|
public override string Name => @"KeyCounter";
|
|
|
|
public override string Description => @"Tests key counter";
|
|
|
|
public override void Reset()
|
|
{
|
|
base.Reset();
|
|
|
|
KeyCounterCollection kc = new KeyCounterCollection
|
|
{
|
|
Origin = Anchor.Centre,
|
|
Anchor = Anchor.Centre,
|
|
IsCounting = true
|
|
};
|
|
Add(kc);
|
|
kc.AddKey(new KeyCounterKeyBoard(@"Z", Key.Z));
|
|
kc.AddKey(new KeyCounterKeyBoard(@"X", Key.X));
|
|
kc.AddKey(new KeyCounterMouse(@"M1", MouseButton.Left));
|
|
kc.AddKey(new KeyCounterMouse(@"M2", MouseButton.Right));
|
|
}
|
|
}
|
|
}
|