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

Goldsource camera input doesn't work under Xash3D-FWGS on Linux #397

Open
FreeSlave opened this issue Oct 9, 2023 · 2 comments
Open

Goldsource camera input doesn't work under Xash3D-FWGS on Linux #397

FreeSlave opened this issue Oct 9, 2023 · 2 comments

Comments

@FreeSlave
Copy link
Member

Change IsXashFWGS in cl_dll/cdll_int.cpp to always return false, in order to make sure that GoldSource style input is used for camera movement.
pfnSDL_GetRelativeMouseState returns 0 for both x and y when I move mouse.

Note that this is a problem with this sdk. client.so from Steam Half-Life doesn't have this problem.

@FreeSlave
Copy link
Member Author

FreeSlave commented Oct 10, 2023

Note: camera works if I comment out this line in the engine: https://github.com/FWGS/xash3d-fwgs/blob/cb1063c3059f8d400a567009cb54a096bec7b210/engine/platform/sdl/in_sdl.c#L69
It still doesn't explain why the original client.so works without changes and our implementation doesn't.

Upd: I tried client.so from halflife-updated and camera movement works fine on Xash3D-FWGS with it.

Could it be connected to the fact that SDL2 is loaded at runtime in our implementation?

@FreeSlave
Copy link
Member Author

I found that removing IN_ClientLookEvent fixes the camera issue.
But there's another issue: player plays step sounds when he turns around while standing still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant