diff options
author | circl <circl.lastname@gmail.com> | 2022-03-26 23:04:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-27 01:11:27 +0100 |
commit | eeeaf410fbe4735a3495f1cec05b22cc25b2a904 (patch) | |
tree | 4cbc7911d22e21af838c62121cae29f4e0158777 /Tests/LibCore/TestLibCoreIODevice.cpp | |
parent | 148f8169a4f2181e5f9a62e61dd6eedfadf99e3f (diff) | |
download | serenity-eeeaf410fbe4735a3495f1cec05b22cc25b2a904.zip |
WindowServer+LibGUI: Expose raw scroll wheel values to applications
This is useful, for instance, in games in which you can switch held
items using the scroll wheel. In order to implement this, they
previously would have to either add a hard-coded division by 4, or look
up your mouse settings to adjust correctly.
This commit adds an MouseEvent.wheel_raw_delta_x() and
MouseEvent.wheel_raw_delta_y().
Diffstat (limited to 'Tests/LibCore/TestLibCoreIODevice.cpp')
0 files changed, 0 insertions, 0 deletions