mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00:00
4cb2c4b494
Co-Authored-By: miterosan <33435289+miterosan@users.noreply.github.com>
26 lines
967 B
C#
26 lines
967 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 Android.App;
|
|
using Android.Content.PM;
|
|
using Android.OS;
|
|
using Android.Views;
|
|
using osu.Framework.Android;
|
|
|
|
namespace osu.Android
|
|
{
|
|
[Activity(Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ScreenOrientation = ScreenOrientation.FullSensor, SupportsPictureInPicture = false, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, HardwareAccelerated = true)]
|
|
public class OsuGameActivity : AndroidGameActivity
|
|
{
|
|
protected override Framework.Game CreateGame() => new OsuGameAndroid();
|
|
|
|
protected override void OnCreate(Bundle savedInstanceState)
|
|
{
|
|
base.OnCreate(savedInstanceState);
|
|
|
|
Window.AddFlags(WindowManagerFlags.Fullscreen);
|
|
Window.AddFlags(WindowManagerFlags.KeepScreenOn);
|
|
}
|
|
}
|
|
}
|