Better Code Layout?
Line 4481 had some probably auto arranged code by VS that didn't look that good so just made it all be in the same vertical layout
This commit is contained in:
parent
7a20524ae4
commit
61e5e4206e
@ -194,7 +194,7 @@
|
||||
|
||||
Author
|
||||
~~~~~~
|
||||
David Barr, aka javidx9, ©OneLoneCoder 2018, 2019, 2020, 2021
|
||||
David Barr, aka javidx9, ©OneLoneCoder 2018, 2019, 2020, 2021
|
||||
*/
|
||||
#pragma endregion
|
||||
|
||||
@ -4478,23 +4478,23 @@ namespace olc
|
||||
ptrPGE->olc_UpdateMouse(ix, iy);
|
||||
return 0;
|
||||
}
|
||||
case WM_SIZE: ptrPGE->olc_UpdateWindowSize(lParam & 0xFFFF, (lParam >> 16) & 0xFFFF); return 0;
|
||||
case WM_SIZE: ptrPGE->olc_UpdateWindowSize(lParam & 0xFFFF, (lParam >> 16) & 0xFFFF); return 0;
|
||||
case WM_MOUSEWHEEL: ptrPGE->olc_UpdateMouseWheel(GET_WHEEL_DELTA_WPARAM(wParam)); return 0;
|
||||
case WM_MOUSELEAVE: ptrPGE->olc_UpdateMouseFocus(false); return 0;
|
||||
case WM_MOUSELEAVE: ptrPGE->olc_UpdateMouseFocus(false); return 0;
|
||||
case WM_SETFOCUS: ptrPGE->olc_UpdateKeyFocus(true); return 0;
|
||||
case WM_KILLFOCUS: ptrPGE->olc_UpdateKeyFocus(false); return 0;
|
||||
case WM_KEYDOWN: ptrPGE->olc_UpdateKeyState(mapKeys[wParam], true); return 0;
|
||||
case WM_KEYUP: ptrPGE->olc_UpdateKeyState(mapKeys[wParam], false); return 0;
|
||||
case WM_SYSKEYDOWN: ptrPGE->olc_UpdateKeyState(mapKeys[wParam], true); return 0;
|
||||
case WM_SYSKEYUP: ptrPGE->olc_UpdateKeyState(mapKeys[wParam], false); return 0;
|
||||
case WM_LBUTTONDOWN:ptrPGE->olc_UpdateMouseState(0, true); return 0;
|
||||
case WM_SYSKEYDOWN: ptrPGE->olc_UpdateKeyState(mapKeys[wParam], true); return 0;
|
||||
case WM_SYSKEYUP: ptrPGE->olc_UpdateKeyState(mapKeys[wParam], false); return 0;
|
||||
case WM_LBUTTONDOWN: ptrPGE->olc_UpdateMouseState(0, true); return 0;
|
||||
case WM_LBUTTONUP: ptrPGE->olc_UpdateMouseState(0, false); return 0;
|
||||
case WM_RBUTTONDOWN:ptrPGE->olc_UpdateMouseState(1, true); return 0;
|
||||
case WM_RBUTTONDOWN: ptrPGE->olc_UpdateMouseState(1, true); return 0;
|
||||
case WM_RBUTTONUP: ptrPGE->olc_UpdateMouseState(1, false); return 0;
|
||||
case WM_MBUTTONDOWN:ptrPGE->olc_UpdateMouseState(2, true); return 0;
|
||||
case WM_MBUTTONDOWN: ptrPGE->olc_UpdateMouseState(2, true); return 0;
|
||||
case WM_MBUTTONUP: ptrPGE->olc_UpdateMouseState(2, false); return 0;
|
||||
case WM_CLOSE: ptrPGE->olc_Terminate(); return 0;
|
||||
case WM_DESTROY: PostQuitMessage(0); DestroyWindow(hWnd); return 0;
|
||||
case WM_DESTROY: PostQuitMessage(0); DestroyWindow(hWnd); return 0;
|
||||
}
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user