2019-01-31 08:07:32 +08:00
|
|
|
|
// 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.
|
2019-01-06 12:15:09 +08:00
|
|
|
|
|
|
|
|
|
using Android.App;
|
|
|
|
|
using Android.Content.PM;
|
2019-01-31 08:07:32 +08:00
|
|
|
|
using Android.OS;
|
|
|
|
|
using Android.Views;
|
2019-01-06 12:15:09 +08:00
|
|
|
|
using osu.Framework.Android;
|
|
|
|
|
|
|
|
|
|
namespace osu.Android
|
|
|
|
|
{
|
2019-01-31 08:07:32 +08:00
|
|
|
|
[Activity(Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ScreenOrientation = ScreenOrientation.SensorLandscape, SupportsPictureInPicture = false, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, HardwareAccelerated = true)]
|
2019-01-06 12:15:09 +08:00
|
|
|
|
public class OsuGameActivity : AndroidGameActivity
|
|
|
|
|
{
|
2019-03-17 22:39:07 +08:00
|
|
|
|
protected override Framework.Game CreateGame() => new OsuGameAndroid();
|
2019-01-31 08:07:32 +08:00
|
|
|
|
|
|
|
|
|
protected override void OnCreate(Bundle savedInstanceState)
|
|
|
|
|
{
|
|
|
|
|
base.OnCreate(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
Window.AddFlags(WindowManagerFlags.Fullscreen);
|
|
|
|
|
Window.AddFlags(WindowManagerFlags.KeepScreenOn);
|
|
|
|
|
}
|
2019-01-06 12:15:09 +08:00
|
|
|
|
}
|
|
|
|
|
}
|