various bug fixes

This commit is contained in:
Arnaud Jamin
2023-10-12 16:16:45 -04:00
parent 9be50bf331
commit 762167e3c2
27 changed files with 95 additions and 53 deletions
@@ -293,6 +293,10 @@ void UCogInputWindow_Gamepad::RenderContent()
ImGui::Dummy(bShowAsOverlay ? CanvasMax - CanvasMin : ContentSize);
if (ImGui::BeginPopupContextItem())
{
if (ImGui::Button("Close", ImVec2(-1.0f, 0)))
{
SetIsVisible(false);
}
ImGui::Checkbox("Overlay", &bShowAsOverlay);
ImGui::Separator();
ImGui::Checkbox("Invert Left Stick Y", &bInvertLeftStickY);
@@ -36,7 +36,6 @@ private:
UPROPERTY(Config)
float RepeatPeriod = 0.5f;
UPROPERTY(Config)
float RepeatTime = 0.0f;
UPROPERTY()
@@ -69,6 +69,9 @@ private:
UPROPERTY(Config)
float Border = 0.02f;
UPROPERTY(Config)
float RepeatPeriod = 0.5f;
UPROPERTY()
TWeakObjectPtr<const UCogInputDataAsset> Asset;
@@ -78,8 +81,6 @@ private:
ImDrawList* DrawList = nullptr;
float RepeatPeriod = 0.5f;
float RepeatTime = 0.0f;
ImVec2 CanvasMin;