Skip to content

InputAPI reference

Interface ITouchOverlay

Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.Touch.dll
Guide: Input

Something drawn over the game on the touch screen, such as VirtualControls.

C#
public interface ITouchOverlay

Methods

Draw(IOverlayCanvas)

Draws the overlay in screen pixels.

C#
void Draw(IOverlayCanvas canvas)

Parameters

canvas IOverlayCanvas

Frame(Vector2, RectF, int, int, Presentation?)

Where the backend should draw the game frame in this window, so the overlay does not cover it. The default is the plain letterbox rule of the game’s presentation (Fit); VirtualControls fits the frame around its controls. Null presentation is PixelArt.

C#
RectF Frame(Vector2 window, RectF safeArea, int virtualWidth, int virtualHeight, Presentation? presentation = null)

Parameters

window Vector2

safeArea RectF

virtualWidth int

virtualHeight int

presentation Presentation?

Returns

RectF