From 4fcd81a47ed3fba154c528451316f8c0c829c1bb Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 12 Oct 2020 21:51:20 -0400 Subject: [PATCH] Update raylib --- include/Mouse.hpp | 2 +- include/Vector2.hpp | 4 ++++ vendor/raylib | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/Mouse.hpp b/include/Mouse.hpp index b8fd19a..07bc3e6 100644 --- a/include/Mouse.hpp +++ b/include/Mouse.hpp @@ -55,7 +55,7 @@ namespace raylib { ::SetMouseScale(scaleX, scaleY); return *this; } - inline int GetWheelMove() { + inline float GetWheelMove() { return ::GetMouseWheelMove(); } inline int GetTouchX() { diff --git a/include/Vector2.hpp b/include/Vector2.hpp index 3cbef9e..1b5cc8d 100644 --- a/include/Vector2.hpp +++ b/include/Vector2.hpp @@ -176,6 +176,10 @@ namespace raylib { return Vector2Lerp(*this, vector2, amount); } + Vector2 Reflect(const Vector2& normal) { + return Vector2Reflect(*this, normal); + } + Vector2 Rotate(float degrees) { return Vector2Rotate(*this, degrees); } diff --git a/vendor/raylib b/vendor/raylib index 032b2db..fa357b8 160000 --- a/vendor/raylib +++ b/vendor/raylib @@ -1 +1 @@ -Subproject commit 032b2db3983836474bef3ee45e90967617146e49 +Subproject commit fa357b8d5d934f54dd1b3cd343b05f06b732d28f