Explorar o código

Clarified comment.

Camilla Berglund %!s(int64=12) %!d(string=hai) anos
pai
achega
edebf3b560
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/win32_window.c

+ 2 - 1
src/win32_window.c

@@ -503,7 +503,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
 
             if (wParam == VK_SHIFT)
             {
-                // Special trick: release both shift keys on SHIFT up event
+                // Release both Shift keys on Shift up event, as only one event
+                // is sent even if both keys are released
                 _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, GLFW_RELEASE, mods);
                 _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, GLFW_RELEASE, mods);
             }