Repository navigation
fix(gameinput): 更新 InputWeave.GameInput v0.0.1 重構發布資產並遷移至 API 4 - #87
Merged
Merged
Conversation
因 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 測試略過)。
Contributor
There was a problem hiding this comment.
🟡 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
裝置列舉持鎖阻塞輪詢,導致手把輸入遺失 · New
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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