소스 검색

Merge pull request #24 from ypujante/fix-23

Fix for #23 (shift and super not set properly)
Jeffery Myers 2 년 전
부모
커밋
ce2df596a2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rlImGui.cpp

+ 2 - 2
rlImGui.cpp

@@ -162,7 +162,7 @@ static void rlImGuiEvents()
 
 	bool shiftDown = rlImGuiIsShiftDown();
 	if (shiftDown != LastShiftPressed)
-		io.AddKeyEvent(ImGuiMod_Shift, ctrlDown);
+		io.AddKeyEvent(ImGuiMod_Shift, shiftDown);
 	LastShiftPressed = shiftDown;
 
 	bool altDown = rlImGuiIsAltDown();
@@ -172,7 +172,7 @@ static void rlImGuiEvents()
 
 	bool superDown = rlImGuiIsSuperDown();
 	if (superDown != LastSuperPressed)
-		io.AddKeyEvent(ImGuiMod_Super, ctrlDown);
+		io.AddKeyEvent(ImGuiMod_Super, superDown);
 	LastSuperPressed = superDown;
 
 	// get the pressed keys, they are in event order