logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.InputGateway.Tests.Infrastructure.Devices.Motion

    Classes

    SonyMotionGamepadSurfaceTests

    PlayMode tests proving Serenity.InputGateway.Infrastructure.Devices.Motion.DualSenseGamepadHIDWithMotion and Serenity.InputGateway.Infrastructure.Devices.Motion.DualShock4GamepadHIDWithMotion's IMotionCapableGamepad accessors are true one-line forwards to their shared Serenity.InputGateway.Infrastructure.Devices.Motion.SonyMotionGamepadSurface collaborator: writing a raw gyro sample through Input System and reading it back off each device's public property proves the surface resolved the right named controls (and, for LastMotionSampleTime, the right device) rather than the device reintroducing its own reading logic. Inheriting UnityEngine.InputSystem.InputTestFixture isolates and resets the input system per test.

    In this article
    © 2026 Serenity. All Rights Reserved