mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Super quick cleanup of cursor changes, pull in associated ImGuiScene changes
This commit is contained in:
parent
348783d394
commit
deb208642f
2 changed files with 2 additions and 5 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Dalamud.Game;
|
using Dalamud.Game;
|
||||||
using Dalamud.Game.Internal;
|
|
||||||
using Dalamud.Game.Internal.DXGI;
|
using Dalamud.Game.Internal.DXGI;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
using EasyHook;
|
using EasyHook;
|
||||||
|
|
@ -130,7 +127,7 @@ namespace Dalamud.Interface
|
||||||
private IntPtr SetCursorDetour(IntPtr hCursor) {
|
private IntPtr SetCursorDetour(IntPtr hCursor) {
|
||||||
Log.Debug($"hCursor: {hCursor.ToInt64():X} WantCapture: {this.lastWantCapture}");
|
Log.Debug($"hCursor: {hCursor.ToInt64():X} WantCapture: {this.lastWantCapture}");
|
||||||
|
|
||||||
if (this.lastWantCapture == true && ImGui_Input_Impl_Direct.Cursors != null && !ImGui_Input_Impl_Direct.Cursors.Contains(hCursor))
|
if (this.lastWantCapture == true && (!scene?.IsImGuiCursor(hCursor) ?? false))
|
||||||
return IntPtr.Zero;
|
return IntPtr.Zero;
|
||||||
|
|
||||||
return this.setCursorHook.Original(hCursor);
|
return this.setCursorHook.Original(hCursor);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit f1a6ea14c354ecc65d36ab212de3d3ce91b60556
|
Subproject commit 1ccd799d8f264523ec5473b4ae18e87be0093653
|
||||||
Loading…
Add table
Add a link
Reference in a new issue