mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
30 lines
848 B
C#
30 lines
848 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Collections.Generic;
|
|
using osu.Framework.Input.States;
|
|
using osuTK.Input;
|
|
|
|
namespace osu.Framework.Input.StateChanges
|
|
{
|
|
public class KeyboardKeyInput : ButtonInput<Key>
|
|
{
|
|
public KeyboardKeyInput(IEnumerable<ButtonInputEntry<Key>> entries)
|
|
: base(entries)
|
|
{
|
|
}
|
|
|
|
public KeyboardKeyInput(Key button, bool isPressed)
|
|
: base(button, isPressed)
|
|
{
|
|
}
|
|
|
|
public KeyboardKeyInput(ButtonStates<Key>? current, ButtonStates<Key>? previous)
|
|
: base(current, previous)
|
|
{
|
|
}
|
|
|
|
protected override ButtonStates<Key> GetButtonStates(InputState state) => state.Keyboard.Keys;
|
|
}
|
|
}
|