InputAPI reference
Interface IClipboard
Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input
The system clipboard’s text: a platform capability (Game.TryGetCapability). Text fields copy, cut and paste
through it (MicroEngine.UI.TextField); a game may use it for its own “copy the seed” or “paste a code” buttons.
public interface IClipboardRemarks
On desktops it is the system clipboard. In a browser, reading gives the text of the page’s latest paste (the player pressed Ctrl+V or Command+V, or chose Paste in the browser’s menu), because a page cannot read the clipboard without asking; writing puts the text on the system clipboard when the browser allows it, which it does right after a key press or a click.
Methods
GetText()
The text on the clipboard; null when it holds no text or cannot be read.
string? GetText()Returns
SetText(string)
Puts text on the clipboard; returns whether the platform took it.
bool SetText(string text)Parameters
text string