Skip to content

EMSCRIPTEN_DEVICE_MOTION_EVENT_SUPPORTS_ROTATION_RATE is unset even when EmscriptenDeviceMotionEvent has correct data #25647

@antonegas

Description

@antonegas

Version of emscripten/emsdk:
4.0.18-git

Description:
When getting an EmscriptenDeviceMotionEvent the EMSCRIPTEN_DEVICE_MOTION_EVENT_SUPPORTS_ROTATION_RATE flag is unset in EmscriptenDeviceMotionEvent.supportedFields even though the rotationRateAlpha, rotationRateBeta and rotationRateGamma contains valid data.

Example code:

// After setting a device motion callback.

EmscriptenDeviceMotionEvent event;
emscripten_get_devicemotion_status(&event);

if (event.supportedFields & EMSCRIPTEN_DEVICE_MOTION_EVENT_SUPPORTS_ROTATION_RATE) {
    // Never entered.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions