From 36c8bc03edddabc8cfd72aa3f04bfc9e38d58b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mora?= Date: Thu, 17 Jan 2019 00:07:23 +0100 Subject: [PATCH] Fix shift key lost --- Sheepy-Vulkan | 2 +- .../org/sheepy/vulkan/sand/input/VSandInputManager.java | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Sheepy-Vulkan b/Sheepy-Vulkan index 1829b757..94353041 160000 --- a/Sheepy-Vulkan +++ b/Sheepy-Vulkan @@ -1 +1 @@ -Subproject commit 1829b757d41caaa3dc8a7198b07cbab6d3cb8c64 +Subproject commit 94353041143dcd90640d2a07b1b9622838051bcf diff --git a/org.sheepy.vulkan.sand/src/main/java/org/sheepy/vulkan/sand/input/VSandInputManager.java b/org.sheepy.vulkan.sand/src/main/java/org/sheepy/vulkan/sand/input/VSandInputManager.java index c440ae99..6f140cdb 100644 --- a/org.sheepy.vulkan.sand/src/main/java/org/sheepy/vulkan/sand/input/VSandInputManager.java +++ b/org.sheepy.vulkan.sand/src/main/java/org/sheepy/vulkan/sand/input/VSandInputManager.java @@ -34,7 +34,14 @@ public void onKeyEvent(KeyEvent event) { // Shift case 340: - shiftPressed = event.state == EKeyState.PRESSED; + if(event.state == EKeyState.PRESSED) + { + shiftPressed = true; + } + else if(event.state == EKeyState.RELEASED) + { + shiftPressed = false; + } break; // n case 'n' - 32: