mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
22 lines
656 B
C#
22 lines
656 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.
|
|
|
|
#nullable enable
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Framework.Input.Events;
|
|
|
|
namespace osu.Game.Graphics
|
|
{
|
|
/// <summary>
|
|
/// A simple container which blocks input events from travelling through it.
|
|
/// </summary>
|
|
public class InputBlockingContainer : Container
|
|
{
|
|
protected override bool OnHover(HoverEvent e) => true;
|
|
|
|
protected override bool OnMouseDown(MouseDownEvent e) => true;
|
|
|
|
protected override bool OnClick(ClickEvent e) => true;
|
|
}
|
|
}
|