We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d09f491 commit dbbec76Copy full SHA for dbbec76
1 file changed
SharpPluginLoader.Core/Rendering/Renderer.cs
@@ -265,14 +265,15 @@ Initializing Renderer with
265
266
_mouseUpdateHook.Original(m);
267
268
- // Block mouse clicks if an ImGui window is hovered. Use _lastUpdateHadFocus
+ // Block mouse1 clicks if an ImGui window is hovered. Use _lastUpdateHadFocus
269
// to more consistently block a click used to unfocus the ImGui window.
270
var anyHovered = ImGui.IsWindowHovered(ImGuiHoveredFlags.AnyWindow);
271
if (anyHovered || _lastUpdateHadFocus)
272
{
273
unsafe
274
275
- *(byte*)(m + 0x188) = 0;
+ *(byte*)(m + 0x108) &= 0xFE; // Combat.
276
+ *(byte*)(m + 0x188) &= 0xFE; // Menus.
277
}
278
_lastUpdateHadFocus = false;
279
0 commit comments