You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
26 lines
558 B
C#
26 lines
558 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
public class InputDetector : MonoBehaviour
|
|
{
|
|
public void DeviceRegained(PlayerInput playerInput)
|
|
{
|
|
Debug.Log("Regained: ");
|
|
for (int i = 0; i < playerInput.devices.Count; i++)
|
|
{
|
|
Debug.Log("Regained: "+ playerInput.devices[i].name);
|
|
}
|
|
}
|
|
|
|
public void DeviceLost(PlayerInput playerInput)
|
|
{
|
|
Debug.Log("Lost: ");
|
|
for (int i = 0; i < playerInput.devices.Count; i++)
|
|
{
|
|
Debug.Log("Lost: " + playerInput.devices[i].name);
|
|
}
|
|
}
|
|
}
|