2eme cube test + lock vertical camera

This commit is contained in:
StratiX0
2024-04-02 12:58:28 +02:00
parent 2224c87468
commit fd0ae3aa25
2 changed files with 21 additions and 2 deletions

View File

@@ -236,10 +236,10 @@ void InputClass::ProcessInput()
//// Ensure the mouse location doesn't exceed the screen width or height.
//if (m_mouseX < 0) { m_mouseX = 0; }
//if (m_mouseY < 0) { m_mouseY = 0; }
if (m_mouseY < -m_screenHeight) { m_mouseY = -m_screenHeight; }
//if (m_mouseX > m_screenWidth) { m_mouseX = m_screenWidth; }
//if (m_mouseY > m_screenHeight) { m_mouseY = m_screenHeight; }
if (m_mouseY > m_screenHeight) { m_mouseY = m_screenHeight; }
return;
}