virtualx-engine/platform
Tan Wang Leng b12240a199 Fix wrong mouse wheel position for MOUSE_MODE_CAPTURED on Windows
WM_MOUSEWHEEL and WM_MOUSEHWHEEL report mouse coordinates relative to
the screen (see lParam in [1]), rather than to the window like the rest
of the mouse events.

The current code already makes adjustments to take that into account.

However, it only makes the adjustments if the mouse is not captured, and
the coordinates are always relative to the screen regardless of whether
the mouse is captured or not, so let's fix the code to always
consistently apply the adjustments.

This fixes #29559.

[1] - https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-mousewheel
2019-08-05 22:10:30 +08:00
..
android Android: Remove unusable android_stl=no option 2019-07-30 18:53:38 +02:00
haiku Remove libwebsocket. No longer used, yay! 2019-07-04 15:03:04 +02:00
iphone Fix type mismatch in iOS interface orientation checks 2019-07-22 20:31:15 +02:00
javascript Emscripten: Do not define BINARYEN_TRAP_MODE='clamp' 2019-07-22 13:21:56 +02:00
osx Turn OS.set_min/max_window_size() warnings into errors 2019-07-30 14:50:52 +02:00
server CameraServer is needed for editor node 2019-07-16 15:45:40 -07:00
uwp Fix some code found by Coverity Scan and PVS Studio 2019-07-23 09:14:31 +02:00
windows Fix wrong mouse wheel position for MOUSE_MODE_CAPTURED on Windows 2019-08-05 22:10:30 +08:00
x11 Turn OS.set_min/max_window_size() warnings into errors 2019-07-30 14:50:52 +02:00
register_platform_apis.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
SCsub SCons: Fix uses of [].append instead of env.add_source_files() 2019-07-22 15:08:32 +02:00