Move the synthetic-input toggle to Controllers under Debug details
"Forward synthetic test input" is a controller-debug aid, so it now lives in the Controllers panel (gated behind Debug details, disabled until the XInput hook is attached) instead of the Injection panel. ControllersPanel owns the flag and exposes test_input(); main feeds it into InjectionPanel::set_test_input each frame, so the existing synthetic-pad substitution in publish() is unchanged. Verified: x64 build green; review (default view no longer shows it in Injection; appears in Controllers under Debug details). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -584,17 +584,6 @@ void InjectionPanel::draw(bool debug_details)
|
||||
ImGui::TextColored(status_color_, "%s", status_.c_str());
|
||||
}
|
||||
|
||||
// Synthetic input only reaches the game if the XInput hook is installed and the
|
||||
// target is actually alive to receive it.
|
||||
ImGui::BeginDisabled(injected_ && (!want_input_ || target_state_ != TargetState::Alive));
|
||||
ImGui::Checkbox("Forward synthetic test input", &test_input_);
|
||||
ImGui::EndDisabled();
|
||||
if (test_input_)
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled("(ignores your controller)");
|
||||
}
|
||||
|
||||
draw_hook_status(debug_details);
|
||||
|
||||
ImGui::End();
|
||||
|
||||
Reference in New Issue
Block a user