From 581f8a3413e28144c57b59536e53ff4a94aff912 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Wed, 24 Oct 2018 15:14:24 -0700 Subject: [PATCH] made delete work --- main.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/main.cpp b/main.cpp index 94901e5..888106d 100644 --- a/main.cpp +++ b/main.cpp @@ -1487,6 +1487,27 @@ LRESULT CALLBACK G3DProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) case WM_MOUSEMOVE: app->onMouseMoved(LOWORD(lParam),HIWORD(lParam)); break; + case WM_KEYDOWN: + if ((HIWORD(lParam)&0x4000)==0) // single key press + { + app->onKeyPressed(wParam); + } + break; + case WM_KEYUP: + { + app->onKeyUp(wParam); + } + break; + case WM_SYSKEYDOWN: + if ((HIWORD(lParam)&0x4000)==0) // single key press + { + app->onKeyPressed(wParam); + } + break; + case WM_SYSKEYUP: + { + app->onKeyUp(wParam); + } case WM_SIZE: { app->onGraphics(app->renderDevice);