Skip to content

Instantly share code, notes, and snippets.

View MccDev260's full-sized avatar

Jon McCreadie MccDev260

  • Wales
View GitHub Profile
@MccDev260
MccDev260 / GetInputDeviceType.cs
Last active March 25, 2024 16:12
Unity Input System: Get the type of input device the player is currently using.
using System;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.DualShock;
using UnityEngine.InputSystem.XInput;
// Hope this helps someone navigate the mess that is Unitys Input System.
namespace MccDev260.InputDevices
{