Table of Contents

Class Hint.Emscripten

Namespace
Sdl3Sharp
Assembly
Sdl3Sharp.dll

SDL_HINT_EMSCRIPTEN_*

public static class Hint.Emscripten
Inheritance
Hint.Emscripten
Inherited Members

Properties

Asyncify

Gets a hint to disable giving back control to the browser automatically when running with asyncify

public static Hint Asyncify { get; }

Property Value

Hint

A hint to disable giving back control to the browser automatically when running with asyncify

Remarks

With -s ASYNCIFY, SDL calls emscripten_sleep during operations such as refreshing the screen or polling events.

This hint only applies to the emscripten platform.

The hint can be set to the following values:

  • "0"Disable emscripten_sleep calls (if you give back browser control manually or use asyncify for other purposes)
  • "1"Enable emscripten_sleep calls (default)

This hint can be set anytime.

See Also

CanvasSelector

Gets a hint specifying the CSS selector used for the "default" window/canvas

public static Hint CanvasSelector { get; }

Property Value

Hint

A hint specifying the CSS selector used for the "default" window/canvas

Remarks

This hint only applies to the emscripten platform.

The default value is "#canvas".

This hint should be set before .

See Also

KeyboardElement

Gets a hint serving as an override for the binding element for keyboard inputs for Emscripten builds

public static Hint KeyboardElement { get; }

Property Value

Hint

A hint serving as an override for the binding element for keyboard inputs for Emscripten builds

Remarks

This hint only applies to the emscripten platform.

The hint can be one of:

  • "#window"The javascript window object (default)
  • "#document"The javascript document object
  • #screen"The javascript window.screen object
  • "#canvas"The WebGL canvas element
  • "#none"Don't bind anything at all
  • Any other string without a leading # signThe element on the page with that ID

This hint should be set before .

See Also