From 3b0ea251f3290a54a8ee876fa229ac38c57f6020 Mon Sep 17 00:00:00 2001 From: mushgunAX Date: Mon, 26 Sep 2022 18:08:59 +0800 Subject: [PATCH] mouse wheel delta poll --- SHADE_Engine/src/Graphics/Windowing/SHWindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SHADE_Engine/src/Graphics/Windowing/SHWindow.cpp b/SHADE_Engine/src/Graphics/Windowing/SHWindow.cpp index 957ffc34..4d8dae72 100644 --- a/SHADE_Engine/src/Graphics/Windowing/SHWindow.cpp +++ b/SHADE_Engine/src/Graphics/Windowing/SHWindow.cpp @@ -1,6 +1,8 @@ #include "SHPch.h" #include "SHWindowMap.h" #include "SHWindow.h" +#include "ECS_Base/Managers/SHSystemManager.h" +#include "Input/SHInputManagerSystem.h" namespace SHADE @@ -339,6 +341,14 @@ namespace SHADE OnPosChange(reinterpret_cast(lparam)); break; } + case WM_MOUSEWHEEL: + { + if (auto im = SHSystemManager::GetSystem()) + { + im->PollWheelVerticalDelta(wparam); + } + break; + } default: return ::DefWindowProc(hwnd, msg, wparam, lparam); }