Skip to content

Motion preference

Generated from engine/app/motion_preference.h at aceb130. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.

Browse the app module

Audience: game code.

#include "engine/app/motion_preference.h" · namespace labrador

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.

The files that include this header directly. A file can also reach it through another header.

Development documentation (unreleased). Built from Labrador aceb130 of 2026-11-20.

All documentation versions