Class MlemPlatform.None
A MLEM platform implementation that does nothing. This can be used if no platform-dependent code is required for the game.
public class MlemPlatform.None : MlemPlatform
- Inheritance
-
MlemPlatform.None
- Inherited Members
Methods
AddTextInputListener(GameWindow, TextInputCallback)
Adds a text input listener to this platform, if supported. The supplied listener will be called whenever a character is input.
public override void AddTextInputListener(GameWindow window, MlemPlatform.TextInputCallback callback)
Parameters
window
GameWindowThe game's window
callback
MlemPlatform.TextInputCallbackThe callback that should be called whenever a character is pressed
OpenLinkOrFile(string)
A method that should be executed to open a link in the browser or a file explorer. This method is currently used only by MLEM.Ui's implementation of the LinkCode formatting code.
public override void OpenLinkOrFile(string link)
Parameters
link
string
OpenOnScreenKeyboard(string, string, string, bool)
Opens the on-screen keyboard if one is required by the platform. Note that, if no on-screen keyboard is required, a null string should be returned.
public override Task<string> OpenOnScreenKeyboard(string title, string description, string defaultText, bool usePasswordMode)
Parameters
title
stringTitle of the dialog box.
description
stringDescription of the dialog box.
defaultText
stringDefault text displayed in the input area.
usePasswordMode
boolIf password mode is enabled, the characters entered are not displayed.