feat: rotation camera avec clic droit
This commit is contained in:
@@ -350,7 +350,7 @@ void InputClass::GetMouseLocation(int& mouseX, int& mouseY)
|
||||
return;
|
||||
}
|
||||
|
||||
bool InputClass::IsMousePressed()
|
||||
bool InputClass::IsLeftMousePressed()
|
||||
{
|
||||
// Check the left mouse button state.
|
||||
if (m_mouseState.rgbButtons[0] & 0x80)
|
||||
@@ -360,3 +360,14 @@ bool InputClass::IsMousePressed()
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool InputClass::IsRightMousePressed()
|
||||
{
|
||||
// Check the left mouse button state.
|
||||
if (m_mouseState.rgbButtons[1] & 0x80)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user