public static unsafe bool ReadUnprocessedValueFromEvent <TValue>(this InputControl <TValue> control, InputEventPtr inputEvent, out TValue value)
            where TValue : struct
        {
            if (control == null)
            {
                throw new ArgumentNullException(nameof(control));
            }

            var statePtr = control.GetStatePtrFromStateEvent(inputEvent);

            if (statePtr == null)
            {
                value = control.ReadDefaultValue();
                return(false);
            }

            value = control.ReadUnprocessedValueFromState(statePtr);
            return(true);
        }