hlsdk-portable icon indicating copy to clipboard operation
hlsdk-portable copied to clipboard

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

Open FreeSlave opened this issue 2 years ago • 2 comments

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 avatar Oct 09 '23 15:10 FreeSlave

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 avatar Oct 10 '23 22:10 FreeSlave

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.

FreeSlave avatar Oct 11 '23 00:10 FreeSlave