HeavenStudio/Assets/Scripts/InputSystem/USG.g/InitInputControllers.PlayerInput.ControllerLoaderGenerator.g.cs

72 lines
1.9 KiB
C#
Raw Normal View History

// <auto-generated>ControllerLoaderGenerator</auto-generated>
using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using HeavenStudio.InputSystem;
using HeavenStudio.InputSystem.Loaders;
using Debug = UnityEngine.Debug;
namespace HeavenStudio
{
partial class PlayerInput
{
public static int InitInputControllers()
{
2024-01-20 04:05:26 +00:00
inputDevices = new List<InputController>();
InputController[] controllers;
PlayerInputRefresh = new();
2024-01-20 04:05:26 +00:00
PlayerInputCleanUp = null;
controllers = InputKeyboardInitializer.Initialize();
if (controllers != null)
{
inputDevices.AddRange(controllers);
}
else
{
Debug.Log("InputKeyboardInitializer.Initialize had no controllers to initialize.");
}
controllers = InputMouseInitializer.Initialize();
if (controllers != null)
{
inputDevices.AddRange(controllers);
}
else
{
Debug.Log("InputMouseInitializer.Initialize had no controllers to initialize.");
}
controllers = InputJoyshockInitializer.Initialize();
if (controllers != null)
{
inputDevices.AddRange(controllers);
}
else
{
Debug.Log("InputJoyshockInitializer.Initialize had no controllers to initialize.");
}
controllers = InputJoyconPairInitializer.Initialize();
if (controllers != null)
{
inputDevices.AddRange(controllers);
}
else
{
Debug.Log("InputJoyconPairInitializer.Initialize had no controllers to initialize.");
}
return inputDevices.Count;
}
}
}