Skip to content

fix(gameinput): 更新 InputWeave.GameInput v0.0.1 重構發布資產並遷移至 API 4 - #87

Merged
perditavojo merged 1 commit into
mainfrom
dev
Oct 30, 2026
Merged

perditavojo merged 1 commit into
mainfrom
dev

Conversation

@perditavojo

Copy link
Copy Markdown
Contributor

因 upstream rubujo/InputWeave.GameInput 重新發布 v0.0.1 套件(來源 commit: da4ff730a1d52a8f4d21d43aba7408c59b50a7a2,遷移至 GameInput API 4 並升級 Microsoft.GameInput 至 4.0.306),同步更新主專案與測試專案:

  • 替換 eng/nuget 內之 InputWeave.GameInput.0.0.1.nupkg 與其 SHA256 sidecar(41aca5564e443497179313e02c0b1365d040386fcb1acc2cd106e1799253ce0b)。
  • 更新 eng/nuget/InputWeave.GameInput_LICENSE.txt、ci.yml、release.yml、README.md 與 tests/InputBox.Tests/README.md 中的來源 commit、雜湊與 Microsoft.GameInput 版本(4.0.306)。
  • 更新 src/InputBox/InputBox.csproj 之 Microsoft.GameInput 套件版本至 4.0.306。
  • 配合 InputWeave API 4 移除 GameInputDeviceStatus 與 SetFocusPolicy:GameInputGamepadController 改用 EnableBackgroundInput(false)、device.IsConnected() 與 GameInputDeviceEvent。
  • 同步更新測試專案以符合 API 4 方法簽名與 GameInputDeviceInfoSnapshot 初始化方式。
  • 本地驗證:Debug 建置 0 警告 0 錯誤,436 項單元測試全數通過(11 項 UI 測試略過)。

因 upstream rubujo/InputWeave.GameInput 重新發布 v0.0.1 套件(來源 commit: da4ff730a1d52a8f4d21d43aba7408c59b50a7a2,遷移至 GameInput API 4 並升級 Microsoft.GameInput 至 4.0.306),同步更新主專案與測試專案:

- 替換 eng/nuget 內之 InputWeave.GameInput.0.0.1.nupkg 與其 SHA256 sidecar(41aca5564e443497179313e02c0b1365d040386fcb1acc2cd106e1799253ce0b)。
- 更新 eng/nuget/InputWeave.GameInput_LICENSE.txt、ci.yml、release.yml、README.md 與 tests/InputBox.Tests/README.md 中的來源 commit、雜湊與 Microsoft.GameInput 版本(4.0.306)。
- 更新 src/InputBox/InputBox.csproj 之 Microsoft.GameInput 套件版本至 4.0.306。
- 配合 InputWeave API 4 移除 GameInputDeviceStatus 與 SetFocusPolicy:GameInputGamepadController 改用 EnableBackgroundInput(false)、device.IsConnected() 與 GameInputDeviceEvent。
- 同步更新測試專案以符合 API 4 方法簽名與 GameInputDeviceInfoSnapshot 初始化方式。
- 本地驗證:Debug 建置 0 警告 0 錯誤,436 項單元測試全數通過(11 項 UI 測試略過)。
Copilot AI balanced review requested due to automatic review settings October 30, 2026 22:08
@perditavojo
perditavojo enabled auto-merge (rebase) October 30, 2026 22:09
@perditavojo
perditavojo merged commit 6f76684 into main Oct 30, 2026
10 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Device enumeration blocks synchronous polling while holding _deviceLock for at least 1.25 seconds, stalling existing controllers and potentially losing button presses during hot-plug refreshes.

1 open issue
What changed in this PR

此 PR 將 InputBox 的 GameInput 整合遷移至 API 4,配合重新發布的 InputWeave.GameInput 0.0.1,並同步套件來源與驗證資訊。

Changes:

  • 更新背景輸入設定、裝置連線判斷、列舉與事件回呼介面。
  • 將 Microsoft.GameInput 升級至 4.0.306,並調整 API 相容性測試。
  • 同步來源 commit、SHA-256、授權連結與 CI/發佈流程中的中繼資料。
File Description
tests/​InputBox.Tests/​README.md 更新測試依賴的來源與雜湊。
tests/​InputBox.Tests/​GamepadControllerPauseTests.cs 改以布林值測試連線狀態判斷。
tests/​InputBox.Tests/​GameInputDirectUsageTests.cs 更新 API 4 介面檢查與裝置資訊初始化。
src/​InputBox/​InputBox.csproj 升級 Microsoft.GameInput 至 4.0.306。
src/​InputBox/​Core/​Input/​GameInputGamepadController.cs 遷移背景輸入、連線、列舉與回呼介面。
README.md 更新套件來源、雜湊與授權版本連結。
eng/​nuget/​InputWeave.GameInput.0.0.1.nupkg.sha256 更新重新發布套件的校驗值。
eng/​nuget/​InputWeave.GameInput_LICENSE.txt 同步封裝來源、雜湊與授權來源。
.github/​workflows/​release.yml 更新來源驗證與發佈授權聲明。
.github/​workflows/​ci.yml 更新套件預期來源 commit。

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants