Merge pull request #56 from SHADE-DP/SP3-10-input-management

Input Manager: Wheel Delta Poll and SH_API.h header
Minor changes. No new features.
This commit is contained in:
XiaoQiDigipen 2022-09-27 13:58:37 +08:00 committed by GitHub
commit 033414f7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 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);
}

View File

@ -12,6 +12,7 @@
#pragma once
//#include <Xinput.h>
//#include "../../SHADE_Managed/src/SHpch.h"
#include "SH_API.h"
#include "ECS_Base/System/SHSystem.h"
#include "ECS_Base/System/SHFixedSystemRoutine.h"