logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class TouchpadReportDecoderTests

    EditMode tests for Serenity.InputGateway.Infrastructure.Devices.Motion.TouchpadReportDecoder: pins the packed-nibble x/y reassembly, the active-flag bit inversion, and normalization against each Sony pad's documented touchpad grid resolution — the pure decoding logic behind DualShock4GamepadHIDWithMotion / DualSenseGamepadHIDWithMotion's ITouchpadCapableGamepad implementation.

    Inheritance
    object
    TouchpadReportDecoderTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.InputGateway.Infrastructure.Devices.Motion.Tests
    Assembly: Serenity.PlayerInput.Tests.Editor.dll
    Syntax
    public sealed class TouchpadReportDecoderTests

    Constructors

    TouchpadReportDecoderTests()

    Declaration
    public TouchpadReportDecoderTests()

    Methods

    IsTouchActive_Bit7Clear_ReturnsTrue()

    Declaration
    public void IsTouchActive_Bit7Clear_ReturnsTrue()

    IsTouchActive_Bit7Set_ReturnsFalse()

    Declaration
    public void IsTouchActive_Bit7Set_ReturnsFalse()

    Normalize_MaxGridRawValue_ReturnsOneOne()

    Declaration
    public void Normalize_MaxGridRawValue_ReturnsOneOne()

    Normalize_OriginRawValue_ReturnsZeroZero()

    Declaration
    public void Normalize_OriginRawValue_ReturnsZeroZero()

    Normalize_RawValueBeyondGrid_ClampsToOne()

    Declaration
    public void Normalize_RawValueBeyondGrid_ClampsToOne()

    TryDecodeTouch_ActiveTouch_ReturnsTrueWithNormalizedPosition()

    Declaration
    public void TryDecodeTouch_ActiveTouch_ReturnsTrueWithNormalizedPosition()

    TryDecodeTouch_InactiveTouch_ReturnsFalseWithDefaultPosition()

    Declaration
    public void TryDecodeTouch_InactiveTouch_ReturnsFalseWithDefaultPosition()

    UnpackX_IgnoresYNibble_InSharedByte()

    Declaration
    public void UnpackX_IgnoresYNibble_InSharedByte()

    UnpackX_LowByteAndNibble_ReconstructsTwelveBitValue()

    Declaration
    public void UnpackX_LowByteAndNibble_ReconstructsTwelveBitValue()

    UnpackY_IgnoresXNibble_InSharedByte()

    Declaration
    public void UnpackY_IgnoresXNibble_InSharedByte()

    UnpackY_NibbleAndHighByte_ReconstructsTwelveBitValue()

    Declaration
    public void UnpackY_NibbleAndHighByte_ReconstructsTwelveBitValue()
    In this article
    © 2026 Serenity. All Rights Reserved