mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
24 lines
871 B
C#
24 lines
871 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.Graphics;
|
|
using osu.Framework.Input.Events;
|
|
using osu.Framework.Input.States;
|
|
|
|
namespace osu.Framework.Input
|
|
{
|
|
public class JoystickButtonEventManager : ButtonEventManager<JoystickButton>
|
|
{
|
|
public JoystickButtonEventManager(JoystickButton button)
|
|
: base(button)
|
|
{
|
|
}
|
|
|
|
protected override Drawable HandleButtonDown(InputState state, List<Drawable> targets) => PropagateButtonEvent(targets, new JoystickPressEvent(state, Button));
|
|
|
|
protected override void HandleButtonUp(InputState state, List<Drawable> targets) =>
|
|
PropagateButtonEvent(targets, new JoystickReleaseEvent(state, Button));
|
|
}
|
|
}
|