mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Replaced osu.Game.Graphics.Cursor.CursorContainer.cs with osu.Framework.Graphics.Cursor.CursorContainer.cs
This commit is contained in:
@ -1,36 +0,0 @@
|
||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Drawables;
|
||||
using osu.Framework.Input;
|
||||
using OpenTK;
|
||||
|
||||
namespace osu.Game.Graphics.Cursor
|
||||
{
|
||||
class CursorContainer : LargeContainer
|
||||
{
|
||||
private Cursor cursor;
|
||||
|
||||
public CursorContainer()
|
||||
{
|
||||
Add(cursor = new Cursor());
|
||||
}
|
||||
|
||||
protected override bool OnMouseMove(InputState state)
|
||||
{
|
||||
cursor.Position = GetLocalPosition(state.Mouse.Position);
|
||||
return base.OnMouseMove(state);
|
||||
}
|
||||
|
||||
class Cursor : Box
|
||||
{
|
||||
public Cursor()
|
||||
{
|
||||
Size = new Vector2(5, 5);
|
||||
Origin = Anchor.Centre;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user