Isn’t this topic about how it only happens when you open the console while focus is active? How about… not opening the console, then?
it the first time i get a clue… it truly come from opening the console for me… this thread gave me that info… zero clue how will i fix this since there is no “console error” but i was ok for 20min then opened the F8 and after that… mouse gone… at least now i know where it come from… but F8 is the most used tool for developing…
It is actually opening the console before and then setting the focus, not while the focus is active
Ah. OP wasn’t clear about this as they edited their post only after I initially read and replied: at first it said something different.
… still doesn’t directly repro: no matter the order in which I do the steps, even with the repro resource, there’s always a cursor being shown, it never hides the cursor at all.
Environment:
- Windows 11 (build 22494)
- NVIDIA 30 series GPU
- Default ‘Full Screen’ game mode (not ‘Exclusive’)
- Game is set to ‘Raw Input’ mouse. ‘DirectInput’ also works fine, after someone suggested me to try that
- A single monitor - I don’t have access to any additional monitors to test a multi-monitor setup, but I tried the USB MM IDD to emulate a monitor and it still worked fine
- No out-of-game-window ImGui windows opened, but even opening
netobjviewer
and dragging it partially off-screen doesn’t break it - Not running Steam/Discord/GeForce Experience/mouse drivers/other overlay apps, but I tried with Steam too and it still doesn’t repro
Steps:
- Downloaded the resource from the GitHub link above (Cursor Invisible After Opening F8 console - #6 by Sharpadogge) on a clean server.
- Started, loaded server.
- On spawning, opened the F8 console and closed it
- Pressed INPUT_PICKUP (E) to open the Ui.
- Noticed the cursor shows and works fine.
- Opened and closed the F8 console again.
- Still shows a cursor.
- Clicked something. Still a cursor.
- Pressed ESC to close the UI, went back to step 3.
- Still works fine: there’s no point where no cursor shows.
These steps also work fine:
- Open the console.
- Write
+pickup; wait 50; -pickup
to open the UI with the console opened. - Close the console.
- A cursor still shows.
I also tried it on the following environment:
- Windows 11 (build 22000 delta 346)
- GeForce Experience installed and running
- Exclusive full screen
… and it still doesn’t reproduce there either.
Nobody has mentioned KeepInput which is the only situation it occurs for me, rather than just setting NuiFocus in general. Only overlay I have is GeForce Experience but I’ll go see if that’s doing something or if I can get any more information.
Edit
Yeah no issue with runcode, but getting the issue with other resources that didn’t previously encounter this issue. Going to try some different scenarios and see if I can find the cause.
I did notice in the ‘streamable.com’ video in the post above, pressing F8 hid the Windows cursor: for me, OTOH, it just shows two cursors at the same time: the Windows cursor and the fake imgui cursor.
Might be some overlay/hook/… DLL doesn’t like the cursor being disabled+enabled in quick succession (imgui still disables the cursor, but something else re-enables it right after)?
Might be fixed whenever someone merges this PR:
Fixed for me
During my testing, I can say that this has seemed to fix the issue.