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); } 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"