mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
85706b47c7
* *don't* cause a stack overflow when polling split controller * update JSL (DualSense Edge support) add ability to update controller bindings * (temporarily) get rid of everything joy-con pair related * prepare the new controller update JSL * implementation of joycon pair * properly do the material * finish implementation
71 lines
1.9 KiB
C#
71 lines
1.9 KiB
C#
// <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()
|
|
{
|
|
|
|
inputDevices = new List<InputController>();
|
|
InputController[] controllers;
|
|
PlayerInputRefresh = new();
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
}
|