Skip to content
modkitv0.2

Safe-area, orientation, lifecycle, and mobile text-input demonstration

← All examples29_safe_area

Safe rectangles and input positions use SDL's native window-coordinate space. Portable margins and control sizes are multiplied by mk_get_window_ui_scale() before they are combined with the safe rectangle.

Safe-area, orientation, lifecycle, and mobile text-input demonstration

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
29
Tags
2dvector
Source
examples/29_safe_area/main.c

Build and run

./scripts/build-linux.sh release --target=29_safe_area --run