using UnityEngine.InputSystem.LowLevel; namespace UnityEngine.InputSystem.Controls { /// /// A control reading a . /// public class DoubleControl : InputControl { /// /// Default-initialize the control. /// public DoubleControl() { m_StateBlock.format = InputStateBlock.FormatDouble; } /// public override unsafe double ReadUnprocessedValueFromState(void* statePtr) { return m_StateBlock.ReadDouble(statePtr); } /// public override unsafe void WriteValueIntoState(double value, void* statePtr) { m_StateBlock.WriteDouble(statePtr, value); } } }