mouse wheel delta poll

This commit is contained in:
mushgunAX 2022-09-26 18:08:59 +08:00
parent 728d615425
commit 3b0ea251f3
1 changed files with 10 additions and 0 deletions

View File

@ -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<LPWINDOWPOS>(lparam));
break;
}
case WM_MOUSEWHEEL:
{
if (auto im = SHSystemManager::GetSystem<SHInputManagerSystem>())
{
im->PollWheelVerticalDelta(wparam);
}
break;
}
default:
return ::DefWindowProc(hwnd, msg, wparam, lparam);
}