A game about forced loneliness, made by TACStudios
1#if UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS 2using UnityEngine.InputSystem.iOS.LowLevel; 3using UnityEngine.InputSystem.Layouts; 4using UnityEngine.InputSystem.LowLevel; 5 6namespace UnityEngine.InputSystem.iOS 7{ 8#if UNITY_DISABLE_DEFAULT_INPUT_PLUGIN_INITIALIZATION 9 public 10#else 11 internal 12#endif 13 static class iOSSupport 14 { 15 public static void Initialize() 16 { 17 InputSystem.RegisterLayout<iOSGameController>("iOSGameController", 18 matches: new InputDeviceMatcher() 19 .WithInterface("iOS") 20 .WithDeviceClass("iOSGameController")); 21 22 InputSystem.RegisterLayout<XboxOneGampadiOS>("XboxOneGampadiOS", 23 matches: new InputDeviceMatcher() 24 .WithInterface("iOS") 25 .WithDeviceClass("iOSGameController") 26 .WithProduct("Xbox Wireless Controller")); 27 28 InputSystem.RegisterLayout<DualShock4GampadiOS>("DualShock4GampadiOS", 29 matches: new InputDeviceMatcher() 30 .WithInterface("iOS") 31 .WithDeviceClass("iOSGameController") 32 .WithProduct("DUALSHOCK 4 Wireless Controller")); 33 34 InputSystem.RegisterLayout<DualSenseGampadiOS>("DualSenseGampadiOS", 35 matches: new InputDeviceMatcher() 36 .WithInterface("iOS") 37 .WithDeviceClass("iOSGameController") 38 .WithProduct("DualSense Wireless Controller")); 39 40 InputSystem.RegisterLayoutMatcher("GravitySensor", 41 new InputDeviceMatcher() 42 .WithInterface("iOS") 43 .WithDeviceClass("Gravity")); 44 InputSystem.RegisterLayoutMatcher("AttitudeSensor", 45 new InputDeviceMatcher() 46 .WithInterface("iOS") 47 .WithDeviceClass("Attitude")); 48 InputSystem.RegisterLayoutMatcher("LinearAccelerationSensor", 49 new InputDeviceMatcher() 50 .WithInterface("iOS") 51 .WithDeviceClass("LinearAcceleration")); 52#if UNITY_EDITOR || UNITY_IOS 53 InputSystem.RegisterLayout<iOSStepCounter>(); 54 // Don't add devices for InputTestRuntime 55 // TODO: Maybe there should be a better place for adding device from C# 56 if (InputSystem.s_Manager.m_Runtime is NativeInputRuntime) 57 { 58 if (iOSStepCounter.IsAvailable()) 59 InputSystem.AddDevice<iOSStepCounter>(); 60 } 61#endif 62 } 63 } 64} 65#endif // UNITY_EDITOR || UNITY_IOS || UNITY_TVOS || UNITY_VISIONOS