TInputDevice GetDeviceInternal <TInputDevice>() where TInputDevice : InputDevice, new() { InputDevice device = null; if (!m_Devices.TryGetValue(typeof(TInputDevice), out device)) { device = new TInputDevice(); device.SetupWithoutProfile(); InputSystem.RegisterDevice(device); m_Devices[typeof(TInputDevice)] = device; } return((TInputDevice)device); }