Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor invisible and unmoveable on campaign selection screen #211

Closed
RykahKnight opened this issue Jul 31, 2023 · 2 comments
Closed

Cursor invisible and unmoveable on campaign selection screen #211

RykahKnight opened this issue Jul 31, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@RykahKnight
Copy link

It doesn't matter which combo of graphical options I use (software, opengl, 4:3, 16:9, fullscreen, windowed), the issue stated in the title happens. Makes it extremely difficult to use this screen, as I have to keep pausing and unpausing the game to move the cursor around.

I'm using a Ryzen 5 3600 CPU and Radeon RX 5500 XT GPU, probably relevant given AMD's lack of support on legacy OpenGL versions.

@RykahKnight RykahKnight changed the title Cursor and unmoveable on campaign selection screen Cursor invisible and unmoveable on campaign selection screen Jul 31, 2023
@SamVanheer SamVanheer added the bug Something isn't working label Aug 2, 2023
@SamVanheer
Copy link
Collaborator

This happens because when raw input is enabled the VGUI1 mouse cursor is invisible.

I reported this issue here: ValveSoftware/halflife#1377 (comment)

The engine has to detect mods' SDL2 usage correctly to show the cursor. I tried to work around the issue by forcing the cursor to be visible but it doesn't seem to be possible from client code.

The exact same client code works fine in Half-Life because the engine knows it uses SDL2.

As a workaround you can disable raw input to use VGUI1 menus.

@SamVanheer SamVanheer transferred this issue from twhl-community/halflife-unified-sdk Aug 15, 2023
@SamVanheer SamVanheer self-assigned this Aug 15, 2023
@SamVanheer
Copy link
Collaborator

This turned out to be a problem with the workaround for the mouse-stuck-in-box bug (ValveSoftware/halflife#1377).

Raw input uses relative mouse mode which hides the cursor. The engine only enables relative mouse mode when the cursor isn't visible, so this workaround had to be updated to also do that. As a side-effect it seems that mouse movement while paused doesn't carry over anymore either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants