Windows 10: root signatures rejected, and keyboard input lost with an XInput keyboard (two fixes on a fork) #729

Open
opened 2026-11-26 04:13:53 +00:00 by github-bot · 2 comments
Owner

@⁠grindersky on GitHub · 2026-11-24 08:38 UTC · original

I can't open pull requests here (they're limited to collaborators), so here are two small fixes on my fork, one branch each, based on current main (787f665). Happy to change anything, or for you to cherry-pick them.

Tested on Windows 10 22H2 with an NVIDIA GPU and a Wooting keyboard.

1. Windows 10: CreateRootSignature fails with E_INVALIDARG

Branch: https://github.com/grindersky/VIctory/tree/feat/agility-sdk-win10 (commit github.com/grindersky/VIctory@4aae06c)

The D3D12 runtime built into Windows 10 predates shader model 6.6 and rejects root signatures that index the descriptor heaps directly, even on GPUs that support them, so the title fails at startup.

victory.exe now exports D3D12SDKVersion (620) and D3D12SDKPath (.\D3D12\), so the loader uses a newer D3D12Core.dll placed in a D3D12 folder beside the exe (new apps/victory/src/agility.rs, plus a build.rs adding the linker exports). Without that folder the system runtime is used as before; Windows 11 is unaffected. The DLLs are not added to the repo; the README explains where to get them (Microsoft.Direct3D.D3D12 NuGet, 1.620.x).

Result: the title reaches the start screen and menus on Windows 10.

2. No keyboard input when a keyboard also presents an XInput pad

Branch: https://github.com/grindersky/VIctory/tree/fix/keyboard-beside-xinput-pad (commit github.com/grindersky/VIctory@d6b8716)

Some keyboards (Wooting) also present an XInput pad that never reports input. Because the keyboard stand-in pad was disconnected while any XInput pad was connected, there was no usable input at the start screen.

The stand-in now stays connected alongside host pads (crates/victory-hle/src/modules/gameinput.rs); the README input section and gameinput tests are updated to match. cargo test -p victory-hle passes.

Result: Enter works at the start screen.

**@⁠grindersky** on GitHub · 2026-11-24 08:38 UTC · [original](https://github.com/Marvisak/VIctory/issues/729) I can't open pull requests here (they're limited to collaborators), so here are two small fixes on my fork, one branch each, based on current `main` (787f665). Happy to change anything, or for you to cherry-pick them. Tested on Windows 10 22H2 with an NVIDIA GPU and a Wooting keyboard. ## 1. Windows 10: `CreateRootSignature` fails with `E_INVALIDARG` Branch: https://github.com/grindersky/VIctory/tree/feat/agility-sdk-win10 (commit https://github.com/grindersky/VIctory/commit/4aae06c) The D3D12 runtime built into Windows 10 predates shader model 6.6 and rejects root signatures that index the descriptor heaps directly, even on GPUs that support them, so the title fails at startup. `victory.exe` now exports `D3D12SDKVersion` (620) and `D3D12SDKPath` (`.\D3D12\`), so the loader uses a newer `D3D12Core.dll` placed in a `D3D12` folder beside the exe (new `apps/victory/src/agility.rs`, plus a `build.rs` adding the linker exports). Without that folder the system runtime is used as before; Windows 11 is unaffected. The DLLs are not added to the repo; the README explains where to get them (Microsoft.Direct3D.D3D12 NuGet, 1.620.x). Result: the title reaches the start screen and menus on Windows 10. ## 2. No keyboard input when a keyboard also presents an XInput pad Branch: https://github.com/grindersky/VIctory/tree/fix/keyboard-beside-xinput-pad (commit https://github.com/grindersky/VIctory/commit/d6b8716) Some keyboards (Wooting) also present an XInput pad that never reports input. Because the keyboard stand-in pad was disconnected while any XInput pad was connected, there was no usable input at the start screen. The stand-in now stays connected alongside host pads (`crates/victory-hle/src/modules/gameinput.rs`); the README input section and gameinput tests are updated to match. `cargo test -p victory-hle` passes. Result: Enter works at the start screen.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:53 +00:00
Author
Owner

@⁠danekbiglike on GitHub · 2026-11-24 10:24 UTC · original

I ran a before/after check for the keyboard part of this issue on native Windows. I used the existing GameInput fake host to model an idle XInput device in slot 0, then pressed and released Enter on the keyboard. The same test ran against both revisions in separate build directories.

Revision Result
Parent 787f665 Reading the keyboard’s stand-in gamepad while the idle XInput device was connected returned DEVICE_DISCONNECTED.
Input fix d6b8716 Enter registered as A on the stand-in while slot 0 stayed idle. After release the stand-in returned to neutral, and slot 0 independently reported B and a left-stick X value of 0.5. All eight GameInput tests passed, including the added case.

This exercises the input API with synthetic device readings. Physical Wooting hardware and the Agility SDK change were outside this check.

Regression test for the existing tests module in gameinput.rs
#[test]
fn keyboard_press_and_release_beside_xinput_pad() {
    let (hub, host) = fake();
    let slot = 0;
    host.lock().unwrap().pads[slot] = Some(PadState::default());
    host.lock().unwrap().keys = vec![key(0x0D)];
    hub.poll();
    let enter = current(hub, GAMEPAD_KIND, FALLBACK)
        .expect("keyboard stand-in disconnected while XInput is present");
    assert_eq!(pad(enter).buttons, A);
    release(enter);
    let idle = current(hub, GAMEPAD_KIND, slot).unwrap();
    assert_eq!(pad(idle), PadState::default());
    release(idle);

    host.lock().unwrap().keys.clear();
    let controller = PadState { buttons: B, left_x: 0.5, ..Default::default() };
    host.lock().unwrap().pads[slot] = Some(controller);
    hub.poll();
    let released = current(hub, GAMEPAD_KIND, FALLBACK).unwrap();
    assert_eq!(pad(released), PadState::default());
    release(released);
    let held = current(hub, GAMEPAD_KIND, slot).unwrap();
    assert_eq!(pad(held), controller);
    release(held);
}

Run cargo test --locked --lib -p victory-hle gameinput.

AI-assisted test and report.

**@⁠danekbiglike** on GitHub · 2026-11-24 10:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/729#issuecomment-7128747181) I ran a before/after check for the keyboard part of this issue on native Windows. I used the existing GameInput fake host to model an idle XInput device in slot 0, then pressed and released Enter on the keyboard. The same test ran against both revisions in separate build directories. | Revision | Result | | --- | --- | | Parent `787f665` | Reading the keyboard’s stand-in gamepad while the idle XInput device was connected returned `DEVICE_DISCONNECTED`. | | Input fix `d6b8716` | Enter registered as A on the stand-in while slot 0 stayed idle. After release the stand-in returned to neutral, and slot 0 independently reported B and a left-stick X value of 0.5. All eight GameInput tests passed, including the added case. | This exercises the input API with synthetic device readings. Physical Wooting hardware and the Agility SDK change were outside this check. <details> <summary>Regression test for the existing tests module in gameinput.rs</summary> ```rust #[test] fn keyboard_press_and_release_beside_xinput_pad() { let (hub, host) = fake(); let slot = 0; host.lock().unwrap().pads[slot] = Some(PadState::default()); host.lock().unwrap().keys = vec![key(0x0D)]; hub.poll(); let enter = current(hub, GAMEPAD_KIND, FALLBACK) .expect("keyboard stand-in disconnected while XInput is present"); assert_eq!(pad(enter).buttons, A); release(enter); let idle = current(hub, GAMEPAD_KIND, slot).unwrap(); assert_eq!(pad(idle), PadState::default()); release(idle); host.lock().unwrap().keys.clear(); let controller = PadState { buttons: B, left_x: 0.5, ..Default::default() }; host.lock().unwrap().pads[slot] = Some(controller); hub.poll(); let released = current(hub, GAMEPAD_KIND, FALLBACK).unwrap(); assert_eq!(pad(released), PadState::default()); release(released); let held = current(hub, GAMEPAD_KIND, slot).unwrap(); assert_eq!(pad(held), controller); release(held); } ``` Run `cargo test --locked --lib -p victory-hle gameinput`. </details> AI-assisted test and report.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:48 UTC · original

Automated triage for the maintainers.

Both problems are still present on current main. Pull requests are open to everyone now, so please open one per branch.

1. Windows 10 root signatures / shader model 6.6. main has no D3D12SDKVersion/D3D12SDKPath exports and no Agility loading, so Windows 10's in-box runtime is used. This is the cluster tracked in #84, the oldest report, which proposes the same export route. Other reports of the same failure: #473, #598, #622, #749, #753, #828, #1532 and #1612. Open PRs for it:

  • #463: exports when a D3D12\D3D12Core.dll is present.
  • #969: ID3D12SDKConfiguration1. bittertea0323's A/B above found that a runtime SetSDKVersion call did not work on their host, while the exports did.
  • #486: the test binaries.
  • #626 and #1768: fall back to plain root signature flags when 0xC01 is refused.

2. Keyboard stand-in disabled by an idle XInput device. Confirmed in State::poll in crates/victory-hle/src/modules/gameinput.rs. FALLBACK is fed only when no host pad slot is connected ((!any_pad).then(...)), so a keyboard that also presents an idle XInput pad hides the keyboard pad. Open PR #1430 addresses this by keeping the stand-in while the XInput slots are at rest. Bundle #1610 left your branch out because it conflicted with the #845 change in the same file.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/729#issuecomment-7149974779) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T13:11:02Z at=2026-11-25T01:57:00Z --> Automated triage for the maintainers. Both problems are still present on current `main`. Pull requests are open to everyone now, so please open one per branch. **1. Windows 10 root signatures / shader model 6.6.** `main` has no `D3D12SDKVersion`/`D3D12SDKPath` exports and no Agility loading, so Windows 10's in-box runtime is used. This is the cluster tracked in #84, the oldest report, which proposes the same export route. Other reports of the same failure: #473, #598, #622, #749, #753, #828, #1532 and #1612. Open PRs for it: - #463: exports when a `D3D12\D3D12Core.dll` is present. - #969: `ID3D12SDKConfiguration1`. bittertea0323's A/B above found that a runtime `SetSDKVersion` call did not work on their host, while the exports did. - #486: the test binaries. - #626 and #1768: fall back to plain root signature flags when 0xC01 is refused. **2. Keyboard stand-in disabled by an idle XInput device.** Confirmed in `State::poll` in `crates/victory-hle/src/modules/gameinput.rs`. `FALLBACK` is fed only when no host pad slot is connected (`(!any_pad).then(...)`), so a keyboard that also presents an idle XInput pad hides the keyboard pad. Open PR #1430 addresses this by keeping the stand-in while the XInput slots are at rest. Bundle #1610 left your branch out because it conflicted with the #845 change in the same file. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#729
No description provided.