Skip to content

Commit f98ef0a

Browse files
authored
v0.97
1 parent 9b66d70 commit f98ef0a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Source/DFoundryFX/Private/StatData.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ void FDFX_StatData::RunDFoundryFX(UGameViewportClient* Viewport, uint64 ImGuiThr
1919
ViewSize.Y = ViewSize.Y / DPIScale;
2020
}
2121

22-
//ViewSize.Set(m_Viewport->Viewport->GetSizeXY().X, m_Viewport->Viewport->GetSizeXY().Y);
23-
UE_LOG(LogDFoundryFX, Log, TEXT("ViewScale: %f x %f"), ViewSize.X, ViewSize.Y);
24-
//UE_LOG(LogDFoundryFX, Log, TEXT("ViewScale: %f"), Viewport->GetDPIScale());
25-
//UE_LOG(LogDFoundryFX, Log, TEXT("ShouldDPIScaleSceneCanvas: %s "), Viewport->ShouldDPIScaleSceneCanvas() ? TEXT("true") : TEXT("false"));
26-
2722
m_ImGuiThreadTime = 0.9 * m_ImGuiThreadTime + 0.1 * (ImGuiThread * FPlatformTime::GetSecondsPerCycle64());
2823

2924
{

Source/DFoundryFX/Private/Thread.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,15 @@ void FDFX_Thread::ImGui_ImplUE_ProcessEvent()
291291
io.AddKeyEvent(m_ImGuiKey, false);
292292
}
293293

294+
if (keys[i].IsTouch()) {
295+
float TouchY, TouchX;
296+
bool TouchPressed;
297+
PlayerController->GetInputTouchState(ETouchIndex::Touch1, TouchY, TouchX, TouchPressed);
298+
io.AddMousePosEvent(TouchX, TouchY);
299+
io.AddMouseButtonEvent(0, TouchPressed);
300+
continue;
301+
}
302+
294303
bool keyboard = !keys[i].IsMouseButton() &&
295304
!keys[i].IsModifierKey() &&
296305
!keys[i].IsGamepadKey() &&

0 commit comments

Comments
 (0)