//* ────────────-_______________________* //* constructor & destructor ───────────────────────* //* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="guid">デバイスのインスタンスGUID</param> /// <param name="hWnd">ウィンドウ ハンドル</param> public CLegacyInput(Guid guid, IntPtr hWnd) : base(CStateLegacyInput.instance, new CPrivateMembers()) { _privateMembers = (CPrivateMembers)privateMembers; string errorReport = string.Empty; try { device = new Device(guid); device.SetDataFormat(DeviceDataFormat.Joystick); capsReport = device.DeviceInformation.createCapsReport() + device.Caps.createCapsReport(); availableForceFeedback = initializeForceFeedBack(ref errorReport); initializeAxis(); device.Acquire(); startForceFeedback = _startForceFeedback; } catch (Exception e) { string err = device == null ? Resources.INPUT_ERR_LEGACY_INIT_FAILED : Resources.INPUT_ERR_LEGACY_INIT_FAILED_MAYBE; errorReport += err + Environment.NewLine + e.ToString(); } this.errorReport = errorReport; }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="playerIndex">XBOX360 プレイヤー番号。</param> private CInputXBOX360(PlayerIndex playerIndex) : base(-1, CState.empty) { this.playerIndex = playerIndex; _privateMemebers = new CPrivateMembers(this); useForAxis = EAxisXBOX360.DPad; }
//* ────────────-_______________________* //* constructor & destructor ───────────────────────* //* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="guid">デバイスのインスタンスGUID</param> /// <param name="hWnd">ウィンドウ ハンドル</param> public CLegacyInput(Guid guid, IntPtr hWnd) : base(CStateLegacyInput.instance, new CPrivateMembers()) { _privateMembers = (CPrivateMembers)privateMembers; device = new Device(guid); capsReport = device.DeviceInformation.createCapsReport() + device.Caps.createCapsReport(); device.SetDataFormat(DeviceDataFormat.Joystick); string errorReport = string.Empty; try { initializeForceFeedBack(ref errorReport); initializeAxis(); } catch (Exception e) { errorReport += Resources.ERR_LEGACY_INIT_FAILED + Environment.NewLine + e.ToString(); } this.errorReport = errorReport; }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="firstState">初期状態。</param> public CXNAInput(IState firstState) : base(firstState, new CPrivateMembers()) { _privateMembers = (CPrivateMembers)privateMembers; _privateMembers.aiForce = new CEntity(null, this); }
//* -----------------------------------------------------------------------* /// <summary> /// <para>コンストラクタ。</para> /// <para>指定の状態で初期化します。</para> /// </summary> /// /// <param name="firstState">初期の状態。</param> public CTaskManager(IState firstState) : base(firstState, new CPrivateMembers()) { _private = (CPrivateMembers)privateMembers; }
//* ────────────-_______________________* //* constructor & destructor ───────────────────────* //* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> public CContentLoader() : base(null, new CPrivateMembers()) { _private = (CPrivateMembers)privateMembers; }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="playerNumber">プレイヤー番号。</param> /// <param name="idDevice">デバイスのインスタンスGUID</param> /// <param name="hWnd">ウィンドウ ハンドル</param> private CInputLegacy(short playerNumber, Guid idDevice, IntPtr hWnd) : base(playerNumber, CStateNoAxis.instance) { _privateMembers = new CPrivateMembers(this, idDevice, hWnd, _buttonStateList); useForAxis = EAxisLegacy.POV; }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> private CAudio() : base(CStateAudio.instance, new CPrivateMembers()) { _privateMembers = (CPrivateMembers)privateMembers; }
//* ────────────-_______________________* //* constructor & destructor ───────────────────────* //* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> private CInputMouse() : base(-1, CState.empty) { _privateMemebers = new CPrivateMembers(this); }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="firstState">初期状態。</param> public CInputEmptyAdapter(IState firstState) : base(firstState, new CPrivateMembers()) { _privateMembers = (CPrivateMembers)privateMembers; buttonList = _privateMembers.buttonList.AsReadOnly(); }
//* -----------------------------------------------------------------------* /// <summary> /// <para>コンストラクタ。</para> /// <para>指定の状態で初期化します。</para> /// </summary> /// /// <param name="firstState">初期の状態。</param> public CTaskManager(IState firstState) : base(firstState, new CPrivateMembers()) { m_callBackOnClear = callbackNOOP; _private = (CPrivateMembers)privateMembers; }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。指定の状態で初期化します。</summary> /// /// <param name="playerNumber">プレイヤー番号。</param> /// <param name="firstState">初期状態。</param> public CInputCollection(short playerNumber, IState firstState) : base(playerNumber, firstState) { _privateMemebers = new CPrivateMembers(this); }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="playerNumber">プレイヤー番号。</param> /// <param name="firstState">初期状態</param> public CInputKeyboard(short playerNumber, IState firstState) : base(playerNumber, firstState) { _privateMemebers = new CPrivateMembers(this); }
//* -----------------------------------------------------------------------* /// <summary>コンストラクタ。</summary> /// /// <param name="firstState">初期状態。</param> public CXNAInput(IState firstState) : base(firstState, new CPrivateMembers()) { _privateMembers = (CPrivateMembers)privateMembers; }