From 3b0ea251f3290a54a8ee876fa229ac38c57f6020 Mon Sep 17 00:00:00 2001 From: mushgunAX Date: Mon, 26 Sep 2022 18:08:59 +0800 Subject: [PATCH 1/2] 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); } From ce721b99e534832e4b3b3ed6bd9b772aed0071ec Mon Sep 17 00:00:00 2001 From: mushgunAX Date: Tue, 27 Sep 2022 13:37:52 +0800 Subject: [PATCH 2/2] include SH_API.h --- SHADE_Engine/src/Input/SHInputManagerSystem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/SHADE_Engine/src/Input/SHInputManagerSystem.h b/SHADE_Engine/src/Input/SHInputManagerSystem.h index 77d8f8fd..eb40b240 100644 --- a/SHADE_Engine/src/Input/SHInputManagerSystem.h +++ b/SHADE_Engine/src/Input/SHInputManagerSystem.h @@ -12,6 +12,7 @@ #pragma once //#include //#include "../../SHADE_Managed/src/SHpch.h" +#include "SH_API.h" #include "ECS_Base/System/SHSystem.h" #include "ECS_Base/System/SHFixedSystemRoutine.h"