summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorSteven Schveighoffer <[email protected]>2022-06-12 11:30:07 -0400
committerGitHub <[email protected]>2022-06-12 17:30:07 +0200
commite1e0bc4266a0506f9daad1c0eb4c7ee555ba81a9 (patch)
tree8930fc4b509a7505d9d96091cb47b106add5c8fd /src/raylib.h
parent875601c4cc9909ff76f454408dfc4f0d78bd5596 (diff)
downloadraylib-e1e0bc4266a0506f9daad1c0eb4c7ee555ba81a9.tar.gz
raylib-e1e0bc4266a0506f9daad1c0eb4c7ee555ba81a9.zip
Add function to read both X and Y mouse scrolling from a trackpad (#2517)
(GetMouseWheelMoveV).
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 31fa35c6..e57c71bc 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1124,7 +1124,8 @@ RLAPI Vector2 GetMouseDelta(void); // Get mouse delta
RLAPI void SetMousePosition(int x, int y); // Set mouse position XY
RLAPI void SetMouseOffset(int offsetX, int offsetY); // Set mouse offset
RLAPI void SetMouseScale(float scaleX, float scaleY); // Set mouse scaling
-RLAPI float GetMouseWheelMove(void); // Get mouse wheel movement Y
+RLAPI float GetMouseWheelMove(void); // Get mouse wheel movement for X or Y, whichever is larger
+RLAPI Vector2 GetMouseWheelMoveV(void); // Get mouse wheel movement for both X and Y
RLAPI void SetMouseCursor(int cursor); // Set mouse cursor
// Input-related functions: touch