From 9a480d391b883397e89dd3f9f22203ae2f4843fb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 23 Oct 2021 22:05:32 +0200 Subject: [PATCH] some MlemPlatform doc clarifications and improvements --- MLEM/Misc/MlemPlatform.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/MLEM/Misc/MlemPlatform.cs b/MLEM/Misc/MlemPlatform.cs index d528d9b..a53fac8 100644 --- a/MLEM/Misc/MlemPlatform.cs +++ b/MLEM/Misc/MlemPlatform.cs @@ -66,13 +66,11 @@ namespace MLEM.Misc { /// /// The MLEM DesktopGL platform. /// This platform uses the built-in MonoGame TextInput event, which makes this listener work with any keyboard localization natively. - /// - /// /// This platform is initialized as follows: /// - /// new MlemPlatform.DesktopGl{TextInputEventArgs}((w, c) => w.TextInput += c) + /// MlemPlatform.Current = new MlemPlatform.DesktopGl<TextInputEventArgs>((w, c) => w.TextInput += c); /// - /// + /// /// public class DesktopGl : MlemPlatform { @@ -116,13 +114,11 @@ namespace MLEM.Misc { /// The MLEM platform for mobile platforms as well as consoles. /// This platform opens an on-screen keyboard using the KeyboardInput class on mobile devices. /// Additionally, it starts a new activity whenever is called. - /// - /// /// This listener is initialized as follows in the game's Activity class: /// - /// new MlemPlatform.Mobile(KeyboardInput.Show, l => this.StartActivity(new Intent(Intent.ActionView, Uri.Parse(l)))) + /// MlemPlatform.Current = new MlemPlatform.Mobile(KeyboardInput.Show, l => this.StartActivity(new Intent(Intent.ActionView, Uri.Parse(l)))); /// - /// + /// public class Mobile : MlemPlatform { private readonly OpenOnScreenKeyboardDelegate openOnScreenKeyboard;