public override void Setup() { base.Setup(); m_SteamAPI = new TestSteamControllerAPI(); SteamSupport.api = m_SteamAPI; InputSystem.RegisterLayout <TestController>( matches: new InputDeviceMatcher() .WithInterface(SteamController.kSteamInterface) .WithProduct("TestController")); }
public override void TearDown() { base.TearDown(); m_SteamAPI = null; SteamSupport.s_API = null; SteamSupport.s_InputDevices = null; SteamSupport.s_ConnectedControllers = null; SteamSupport.s_InputDeviceCount = 0; SteamSupport.s_HooksInstalled = false; }