xash3d icon indicating copy to clipboard operation
xash3d copied to clipboard

Mouse problem

Open Kodpact opened this issue 6 years ago • 13 comments

In-game when i'm moving mouse with high speed it fully stops recognition of mouse moving. This is not my mouse problem or windows, cause in original engine [GoldSrc] it works OK.

Kodpact avatar Jul 29 '18 14:07 Kodpact

Strange, I remember it was happening only on original engine. Can you send engine version? Enter host_ver in console.

a1batross avatar Jul 29 '18 15:07 a1batross

1215 0.19.2

Kodpact avatar Jul 29 '18 19:07 Kodpact

And which platform?

a1batross avatar Jul 29 '18 19:07 a1batross

Win32 i386

Kodpact avatar Jul 29 '18 21:07 Kodpact

SDL2-2.0.8 bug?

mittorn avatar Jul 30 '18 13:07 mittorn

this still happens on current 'master' build (SDL 2.0.7)

Kodpact avatar Oct 04 '18 15:10 Kodpact

I've been experiencing this same issue. Workarround:

  1. Disable VSync. From the main menu, go to "Configuration" > "Video" > "Video modes". There should be a checkbox for "Vertical Sync" at the bottom of the screen. After you uncheck the box, click "Ok".
  2. Quit the game.
  3. Launch Xash3D with the launch parameter -console.
  4. Open the developer console, and type fps_max 125. The higher the value, the less this bug will affect you. I'd recommend using a number from here.

There is several issues with this workaround, as several mechanics in Half-Life are affected by framerate. Most notably, the higher your FPS is, the slower that NPCs will turn.

Jayman2000 avatar Apr 10 '19 18:04 Jayman2000

Another solution may be using m_rawinput 1. This is Win32 only bug. :(

Instead of warping mouse every frame into window center(that's why higher FPS may help), it will try to read relative values over SDL2.

a1batross avatar Apr 13 '19 18:04 a1batross

Another solution may be using m_rawinput 1. This is Win32 only bug. :(

I'm running Kubuntu 18.10, and I'm experiencing this bug at 60 FPS.

Jayman2000 avatar Apr 13 '19 18:04 Jayman2000

@Jayman2000 where did you get client.so? Built from hlsdk-xash3d or from Steam?

a1batross avatar Apr 13 '19 19:04 a1batross

I got it from Steam.

Jayman2000 avatar Apr 13 '19 19:04 Jayman2000

That's awkward. I never encountered this on Linux at all.

a1batross avatar Apr 13 '19 22:04 a1batross

Mouse works bad on win32/sdl2 clients without m_rawinput If we capture mouse with SDL2, it will not work with legacy clients at all, so capture is disabled

mittorn avatar Apr 13 '19 23:04 mittorn