godot/platform/windows
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
..
export Add embedded PCK option to PC platforms 2019-07-03 21:58:12 +02:00
camera_win.cpp Add script to fix style issues and copyright headers 2019-06-17 13:35:47 +02:00
camera_win.h Add script to fix style issues and copyright headers 2019-06-17 13:35:47 +02:00
context_gl_windows.cpp Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
context_gl_windows.h Remove ContextGL since as an abstraction it's unused. 2019-04-06 17:52:52 +02:00
crash_handler_windows.cpp Check project settings live before lookup in crash handler 2019-05-23 20:06:56 +01:00
crash_handler_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
detect.py SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor defines 2019-07-03 09:59:04 +02:00
godot.ico Make the Windows icon file smaller 2017-06-20 14:38:50 +02:00
godot.natvis Fixed & improved Visual Studio custom debugger visualization 2019-03-12 08:59:30 +01:00
godot_res.rc Remove "Editor" from Windows PE file description 2019-06-11 15:22:03 +02:00
godot_windows.cpp Add embedded PCK option to PC platforms 2019-07-03 21:58:12 +02:00
joypad_windows.cpp Fix endless controller iteration 2019-06-17 18:01:09 +02:00
joypad_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
key_mapping_windows.cpp Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
key_mapping_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
lang_table.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
os_windows.cpp Fix wrong mouse wheel position for MOUSE_MODE_CAPTURED on Windows 2019-08-05 22:10:30 +08:00
os_windows.h Fix cursor blinking in integrated GPUs 2019-07-09 19:38:25 -03:00
platform_config.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
platform_windows_builders.py Running builder (content generator) functions in subprocesses on Windows 2018-07-27 21:37:55 +02:00
power_windows.cpp Fix compilation warnings in JS and Windows builds 2019-06-15 14:40:45 +02:00
power_windows.h Platform: Ensure classes match their header filename 2019-02-12 16:56:25 +01:00
SCsub Adding a new Camera Server implementation to Godot. 2019-06-15 21:30:32 +10:00
windows_terminal_logger.cpp Fix compilation warnings in JS and Windows builds 2019-06-15 14:40:45 +02:00
windows_terminal_logger.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00