mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-08 21:17:53 +00:00
CBasicViewport: Remove unnecessary casts
This commit is contained in:
@@ -312,7 +312,7 @@ void CBasicViewport::ProcessInput()
|
||||
|
||||
if ((XMovement != 0) || (YMovement != 0))
|
||||
{
|
||||
mCamera.ProcessMouseInput((FKeyInputs) mKeysPressed, (FMouseInputs) mButtonsPressed, XMovement, YMovement);
|
||||
mCamera.ProcessMouseInput(mKeysPressed, mButtonsPressed, XMovement, YMovement);
|
||||
QCursor::setPos(mLastMousePos);
|
||||
mMouseMoved = true;
|
||||
}
|
||||
@@ -320,7 +320,7 @@ void CBasicViewport::ProcessInput()
|
||||
|
||||
if (IsKeyboardInputActive())
|
||||
if ((mKeysPressed & EKeyInput::Ctrl) == 0)
|
||||
mCamera.ProcessKeyInput((FKeyInputs) mKeysPressed, DeltaTime);
|
||||
mCamera.ProcessKeyInput(mKeysPressed, DeltaTime);
|
||||
|
||||
// Update view info
|
||||
const CMatrix4f& rkView = mCamera.ViewMatrix();
|
||||
|
||||
Reference in New Issue
Block a user