HeavenStudioPlus/Assets/Scripts/LevelEditor/SettingsDialog/Tabs/ControllerSettings.cs
minenice55 8df667bfec basic controller input from JSL
may need compiles for linux and mac
2022-07-19 18:50:35 -04:00

23 lines
No EOL
639 B
C#

using UnityEngine;
using UnityEngine.UI;
using TMPro;
using HeavenStudio;
using static JSL;
namespace HeavenStudio.Editor
{
public class ControllerSettings : MonoBehaviour
{
[SerializeField] private TMP_Text numConnectedLabel;
[SerializeField] private TMP_Text currentControllerLabel;
public void SearchAndConnectControllers()
{
int connected = PlayerInput.InitJoyShocks();
numConnectedLabel.text = "Connected: " + connected;
//do this better
currentControllerLabel.text = "Current Controller: " + PlayerInput.GetJoyShockName(0);
}
}
}