From 6047ff9c72a44bfed67e37692a045ee935f46c00 Mon Sep 17 00:00:00 2001 From: p989 Date: Sat, 9 May 2009 02:51:11 +0000 Subject: [PATCH] win32: pause works as a hotkey --- desmume/src/windows/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index e7b37a051..8606352ae 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -2659,7 +2659,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM //break; case WM_KEYDOWN: - break; + if(wParam != VK_PAUSE) + break; case WM_SYSKEYDOWN: case WM_CUSTKEYDOWN: { @@ -2669,6 +2670,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM break; } case WM_KEYUP: + if(wParam != VK_PAUSE) + break; case WM_SYSKEYUP: case WM_CUSTKEYUP: {