Allow orientation locking arch ball controller
This commit is contained in:
@@ -26,8 +26,8 @@ namespace OpenVulkano
|
||||
{
|
||||
if (!GetCamera()) return;
|
||||
Input::InputManager* input = Input::InputManager::GetInstance();
|
||||
float inYaw = input->GetAxis(m_actionLookSide);
|
||||
float inPitch = input->GetAxis(m_actionLookUp);;
|
||||
float inYaw = (lockYaw) ? 0 : input->GetAxis(m_actionLookSide);
|
||||
float inPitch = (lockPitch) ? 0 : input->GetAxis(m_actionLookUp);
|
||||
Math::Vector4f_SIMD position = GetCamera()->GetPosition();
|
||||
bool updated = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user