浏览代码

Fix for #23 (shit and super not set properly)

Yan Pujante 2 年之前
父节点
当前提交
a38ab7dd05
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rlImGui.cpp

+ 2 - 2
rlImGui.cpp

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