forked from nkast/MonoGame
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* inline GetEffectiveSupportedOrientations() * remove GetEffectiveSupportedOrientations() * move supported * simplify supported * split supported check * move deviceManager * duplicate code * simplify deviceManager null check * default supported * use deviceManager.SupportedOrientations * remove _supportedOrientations * simplify default supported * refactor ratio check * refactor SetOrientation(...) * refactor ratio check * WindowOrientationChanged event * subscribe to WindowOrientationChanged
- Loading branch information
Showing
12 changed files
with
194 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (C)2025 Nick Kastellanos | ||
|
||
using System; | ||
using Microsoft.Xna.Framework; | ||
|
||
|
||
namespace Microsoft.Xna.Platform | ||
{ | ||
internal class AndroidConfigChangedEventArgs : EventArgs | ||
{ | ||
public readonly Android.Content.Res.Configuration NewConfig; | ||
|
||
public AndroidConfigChangedEventArgs(Android.Content.Res.Configuration newConfig) | ||
{ | ||
NewConfig = newConfig; | ||
} | ||
} | ||
|
||
internal class AndroidConfigChangedOrientationEventArgs : AndroidConfigChangedEventArgs | ||
{ | ||
public readonly Android.Content.Res.Orientation NewOrientation; | ||
|
||
public AndroidConfigChangedOrientationEventArgs(Android.Content.Res.Configuration newConfig, Android.Content.Res.Orientation newOrientation) | ||
: base(newConfig) | ||
{ | ||
this.NewOrientation = newOrientation; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.