tests mouvements de la camera

rotation de la camera, peut etre amelioree ?????
This commit is contained in:
StratiX0
2024-04-02 12:48:35 +02:00
parent 41fdb55b04
commit 5cce3b4905
3 changed files with 45 additions and 5 deletions

View File

@@ -234,12 +234,12 @@ void InputClass::ProcessInput()
m_mouseX += m_mouseState.lX;
m_mouseY += m_mouseState.lY;
// 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; }
//// 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_mouseX > m_screenWidth) { m_mouseX = m_screenWidth; }
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; }
return;
}