Motion preference
Generated from engine/app/motion_preference.h at f525bc6. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
Audience: game code.
#include "engine/app/motion_preference.h" · namespace labrador
prefers_reduced_motion
Section titled “prefers_reduced_motion”Whether the platform currently asks for reduced motion: disabled client-area animations on Windows, or prefers-reduced-motion: reduce in a browser. Returns false when the setting cannot be read or the browser has no query API.
Read on each call, with no cached value or listeners. The result is a snapshot until the caller asks again, including before a window is opened or after it closes. Call on the application thread. This changes no effects or options; the game chooses when to refresh and whether an explicit player choice wins.
In the samples and tests
Section titled “In the samples and tests”The files that include this header directly. A file can also reach it through another header.
samples/linesweeper/main.cpp,main_web.cpptests/app/motion_preference_tests.cpptests/app/web/window_page.cpp
Explained in
Section titled “Explained in”Documentation for Labrador v0.4.0. Built from Labrador f525bc6 of 2026-11-17.