diff --git a/Sandbox/src/Editor/EditorLayer.cpp b/Sandbox/src/Editor/EditorLayer.cpp index abed044..67b8729 100644 --- a/Sandbox/src/Editor/EditorLayer.cpp +++ b/Sandbox/src/Editor/EditorLayer.cpp @@ -404,7 +404,7 @@ namespace Hazel float snapValues[3] = {snapValue, snapValue, snapValue}; if (ImGuizmo::Manipulate(glm::value_ptr(cameraView), glm::value_ptr(cameraProjection), static_cast(m_GizmoType), ImGuizmo::WORLD, - glm::value_ptr(transform), nullptr, snap ? snapValues : nullptr) && !Input::IsKeyPressed(SDL_SCANCODE_LALT)) + glm::value_ptr(transform), nullptr, snap ? snapValues : nullptr) && !Input::IsKeyPressed(KeyCode::LALT)) { if (ImGuizmo::IsUsing()) { @@ -559,7 +559,7 @@ namespace Hazel m_CameraController.OnEvent(e); m_EditorCamera.OnEvent(e); } - if (e.button.clicks && m_ViewportHovered && !ImGuizmo::IsOver() && Input::IsMouseButtonPressed(BUTTON_LEFT) && !Input::IsKeyPressed(SDL_SCANCODE_LALT)) + if (e.button.clicks && m_ViewportHovered && !ImGuizmo::IsOver() && Input::IsMouseButtonPressed(MouseButton::BUTTON_LEFT) && !Input::IsKeyPressed(KeyCode::LALT)) m_SceneHierachyPanel.SetSelectedEntity(m_HoveredEntity); #define SHORTCUT_EXIT (SDL_KMOD_CTRL + SDLK_W)