Skip to content

Commit

Permalink
Fix shift key lost
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealrann committed Jan 16, 2019
1 parent 3562d3b commit 36c8bc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sheepy-Vulkan
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 36c8bc0

Please sign in to comment.