mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
27 lines
765 B
C#
27 lines
765 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;
|
|
using osu.Framework.Platform;
|
|
using osu.Framework.Platform.SDL3;
|
|
|
|
namespace osu.Framework.Android
|
|
{
|
|
internal class AndroidGameWindow : SDL3MobileWindow
|
|
{
|
|
public override IntPtr SurfaceHandle => AndroidGameActivity.Surface.Holder?.Surface?.Handle ?? IntPtr.Zero;
|
|
|
|
public AndroidGameWindow(GraphicsSurfaceType surfaceType, string appName)
|
|
: base(surfaceType, appName)
|
|
{
|
|
}
|
|
|
|
public override void Create()
|
|
{
|
|
base.Create();
|
|
|
|
SafeAreaPadding.BindTo(AndroidGameActivity.Surface.SafeAreaPadding);
|
|
}
|
|
}
|
|
}
|