Menu

#551 [Patch] SDL2 throws out some input in relative mouse mode

3.0
closed-duplicate
nobody
None
5
2018-09-16
2014-07-04
cream
No

ezquake 3.0 is throwing out mouse input when SDL2 is set to use relative coordinates (via in_raw 1). The problem is that mx and my are being reset regardless of the mouse coordinate mode whenever the input is processed.

This patch does the following:

1.) Simplifies the code by making both input styles (raw and processed) use relative coordinates. SDL2 has a hint for this, so there's no longer any need to warp the cursor manually.

2.) Removes the offending line of code causing this bug in in_sdl2.c, which is safe since all input is now using relative coordinates.

1 Attachments

Discussion

  • meag

    meag - 2018-09-16
    • status: open --> closed-duplicate
     
  • meag

    meag - 2018-09-16

    Closing: duplicate of github pull request https://github.com/ezQuake/ezquake-source/pull/28

     
MongoDB Logo MongoDB