protected void InitController(UserIndex userIndex) { _controllerIndex = (int)userIndex; _subDeviceId = _controllerIndex.ToString(CultureInfo.InvariantCulture); _deviceName = string.Format("{0} {1}", DEVICE_NAME, _subDeviceId); if (_controllerIndex > 3) { _controllerIndex = 0; } _controller = new XInputControllerCache(new Controller(userIndex), CONTROLLER_CONNECTED_TIMEOUT); }
public XInputMapper(XInputControllerCache controller) { _controller = controller; InitializeInputs(); }