Skip to content

Commit b657589

Browse files
committed
Fixed input bug.
1 parent 99255b8 commit b657589

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NeonEngine/imgui.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Size=1441,1038
5656
Collapsed=0
5757

5858
[Docking][Data]
59-
DockSpace ID=0x3BC79352 Window=0x4647B76E Pos=239,299 Size=1920,1054 Split=X Selected=0x13926F0B
59+
DockSpace ID=0x3BC79352 Window=0x4647B76E Pos=853,537 Size=1920,1054 Split=X Selected=0x13926F0B
6060
DockNode ID=0x00000003 Parent=0x3BC79352 SizeRef=1388,527 Split=Y Selected=0x13926F0B
6161
DockNode ID=0x00000005 Parent=0x00000003 SizeRef=1387,772 CentralNode=1 Selected=0x13926F0B
6262
DockNode ID=0x00000006 Parent=0x00000003 SizeRef=1387,280 Selected=0xBF096F38

NeonEngine/src/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void Input::process_viewport_input() {
7878
if (selected_object_transform3d != nullptr) {
7979
rendering->last_selected_object_transform3d = selected_object_transform3d;
8080
rendering->transform3d->set_highlight(true);
81-
if (ImGui::IsMouseDown(ImGuiMouseButton_Left)) {
81+
if (ImGui::IsMouseClicked(ImGuiMouseButton_Left, false)) {
8282
if (rendering->transform3d->type != TRANSLATION) {
8383
glfwSetInputMode(neon_engine->window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
8484
}

0 commit comments

Comments
 (0)