Fix bugs issues with CLEOImGui
This commit is contained in:
parent
fc7fb0c8f8
commit
50cacd97e7
@ -138,6 +138,8 @@ void Hook::ShowMouse(bool state)
|
|||||||
{
|
{
|
||||||
if (state)
|
if (state)
|
||||||
{
|
{
|
||||||
|
CPad::NewMouseControllerState.X = 0;
|
||||||
|
CPad::NewMouseControllerState.Y = 0;
|
||||||
patch::SetUChar(0x6194A0, 0xC3);
|
patch::SetUChar(0x6194A0, 0xC3);
|
||||||
patch::Nop(0x53F417, 5); // don't call CPad__getMouseState
|
patch::Nop(0x53F417, 5); // don't call CPad__getMouseState
|
||||||
patch::SetRaw(0x53F41F, (void*)"\x33\xC0\x0F\x84", 4); // disable camera mouse movement
|
patch::SetRaw(0x53F41F, (void*)"\x33\xC0\x0F\x84", 4); // disable camera mouse movement
|
||||||
@ -156,14 +158,13 @@ void Hook::ShowMouse(bool state)
|
|||||||
|
|
||||||
if (mouse_visibility != show_mouse)
|
if (mouse_visibility != show_mouse)
|
||||||
{
|
{
|
||||||
CPad::NewMouseControllerState.X = 0;
|
|
||||||
CPad::NewMouseControllerState.Y = 0;
|
|
||||||
|
|
||||||
// Broken in psdk
|
// Broken in psdk
|
||||||
Call<0x541BD0>(); // CPad::ClearMouseHistory
|
Call<0x541BD0>(); // CPad::ClearMouseHistory
|
||||||
Call<0x541DD0>(); // CPad::UpdatePads
|
Call<0x541DD0>(); // CPad::UpdatePads
|
||||||
|
|
||||||
ImGui::GetIO().MouseDrawCursor = state;
|
ImGui::GetIO().MouseDrawCursor = state;
|
||||||
|
CPad::NewMouseControllerState.X = 0;
|
||||||
|
CPad::NewMouseControllerState.Y = 0;
|
||||||
mouse_visibility = show_mouse;
|
mouse_visibility = show_mouse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user