From 301a37c5fef79b612db06043ccb74921bd397f7e Mon Sep 17 00:00:00 2001 From: Ioannis Tsakpinis Date: Mon, 5 Jan 2015 20:16:56 +0200 Subject: [PATCH] Revert 849511784b7651bd30ab35e0ff10c023f28cca9a --- src/java/org/lwjgl/opengl/WindowsKeyboard.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/java/org/lwjgl/opengl/WindowsKeyboard.java b/src/java/org/lwjgl/opengl/WindowsKeyboard.java index 11accfc4..ed1c932c 100644 --- a/src/java/org/lwjgl/opengl/WindowsKeyboard.java +++ b/src/java/org/lwjgl/opengl/WindowsKeyboard.java @@ -70,10 +70,11 @@ final class WindowsKeyboard { // Windows will not send an up event for the first button that was released in this case. // There will only be one up event, for the last button only. We handle this problem // here, using asynchronous state queries. - if ( isKeyDown(Keyboard.KEY_LSHIFT) && isKeyDown(Keyboard.KEY_RSHIFT) ) { - if ( !isKeyPressedAsync(WindowsKeycodes.VK_LSHIFT) ) handleKey(WindowsKeycodes.VK_SHIFT, Keyboard.KEY_LSHIFT, false, (byte)0, 0L, false); - if ( !isKeyPressedAsync(WindowsKeycodes.VK_RSHIFT) ) handleKey(WindowsKeycodes.VK_SHIFT, Keyboard.KEY_RSHIFT, false, (byte)0, 0L, false); - } + if ( isKeyDown(Keyboard.KEY_LSHIFT) && !isKeyPressedAsync(WindowsKeycodes.VK_LSHIFT) ) + handleKey(WindowsKeycodes.VK_SHIFT, Keyboard.KEY_LSHIFT, false, (byte)0, 0L, false); + + if ( isKeyDown(Keyboard.KEY_RSHIFT) && !isKeyPressedAsync(WindowsKeycodes.VK_RSHIFT) ) + handleKey(WindowsKeycodes.VK_SHIFT, Keyboard.KEY_RSHIFT, false, (byte)0, 0L, false); int old_position = keyDownBuffer.position(); keyDownBuffer.put(key_down_buffer);