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