コード例 #1
0
ファイル: SInput.cs プロジェクト: SophieH/Sinput
    static void Init()
    {
        //Debug.Log("init!");
        if (initialised)
        {
            return;
        }
        initialised = true;

        _totalPossibleDeviceSlots = System.Enum.GetValues(typeof(InputDeviceSlot)).Length;

        zeroInputWaits = new float[_totalPossibleDeviceSlots];
        zeroInputs     = new bool[_totalPossibleDeviceSlots];

        _xr = new SinputSystems.XR.SinputXR();
    }
コード例 #2
0
ファイル: SInput.cs プロジェクト: forestrf/Sinput
    public static void Init()
    {
        if (!initialized)
        {
            initialized = true;
        }
        else
        {
            return;
        }
        Debug.Log("Initializing SInput");

        totalPossibleDeviceSlots = Enum.GetValues(typeof(SinputSystems.InputDeviceSlot)).Length;

        zeroInputWaits = new float[totalPossibleDeviceSlots];
        zeroInputs     = new bool[totalPossibleDeviceSlots];

        _xr = new SinputSystems.XR.SinputXR();
    }