mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:49:25 +08:00
opt: do not clear touch point after imgui input event handled
This commit is contained in:
@@ -250,12 +250,6 @@ UnityEngine_Touch_o* my_UnityEngine_Input_GetTouch(UnityEngine_Touch_o* ret, int
|
||||
|
||||
if (g_imgui_started.load() && !g_need_ui_penetration && CrackerUI::get_instance().is_ui_showed() && touch != nullptr) {
|
||||
if (My_ImGui_ImplAndroid_HandleInputEvent(*touch) == 0) {
|
||||
touch->fields.m_RawPosition.fields.x = 0;
|
||||
touch->fields.m_RawPosition.fields.y = 0;
|
||||
touch->fields.m_Position.fields.x = 0;
|
||||
touch->fields.m_Position.fields.y = 0;
|
||||
touch->fields.m_PositionDelta.fields.x = 0;
|
||||
touch->fields.m_PositionDelta.fields.y = 0;
|
||||
touch->fields.m_Phase = TOUCH_PHASE_CANCELED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user