mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ImGui fixed
- Disabled DpiAwareness - Now using ImGui implementation WndProcHandler - Fixed horizontal scrolling
This commit is contained in:
@@ -218,7 +218,9 @@ namespace GlitchyEngine
|
||||
{
|
||||
return DefWindowProcW(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
|
||||
ImGui.ImGuiImplWin32.WndProcHandler(hwnd, uMsg, wParam, lParam);
|
||||
|
||||
switch (uMsg)
|
||||
{
|
||||
////
|
||||
@@ -371,8 +373,7 @@ namespace GlitchyEngine
|
||||
// Horizontal scrolling
|
||||
case WM_MOUSEHWHEEL:
|
||||
{
|
||||
// horizontal scrolling is inverted for some reason
|
||||
int32 rotation = -(int16)HighOrder!((int64)wParam) / WHEEL_DELTA;
|
||||
int32 rotation = (int16)HighOrder!((int64)wParam) / WHEEL_DELTA;
|
||||
|
||||
var event = scope MouseScrolledEvent(rotation, 0);
|
||||
window._eventCallback(event);
|
||||
|
||||
Reference in New Issue
Block a user