コード例 #1
0
 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);
 }
コード例 #2
0
 public XInputMapper(XInputControllerCache controller)
 {
     _controller = controller;
     InitializeInputs();
 }