CBasicViewport: Make use of constexpr
This commit is contained in:
parent
ec66d7af9d
commit
69efdc0daf
|
@ -216,13 +216,13 @@ bool CBasicViewport::IsCursorVisible() const
|
||||||
|
|
||||||
bool CBasicViewport::IsMouseInputActive() const
|
bool CBasicViewport::IsMouseInputActive() const
|
||||||
{
|
{
|
||||||
static const FMouseInputs skMoveButtons = EMouseInput::MiddleButton | EMouseInput::RightButton;
|
static constexpr FMouseInputs skMoveButtons = EMouseInput::MiddleButton | EMouseInput::RightButton;
|
||||||
return ((mButtonsPressed & skMoveButtons) != 0);
|
return ((mButtonsPressed & skMoveButtons) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CBasicViewport::IsKeyboardInputActive() const
|
bool CBasicViewport::IsKeyboardInputActive() const
|
||||||
{
|
{
|
||||||
static const FKeyInputs skMoveKeys = EKeyInput::Q | EKeyInput::W | EKeyInput::E |
|
static constexpr FKeyInputs skMoveKeys = EKeyInput::Q | EKeyInput::W | EKeyInput::E |
|
||||||
EKeyInput::A | EKeyInput::S | EKeyInput::D;
|
EKeyInput::A | EKeyInput::S | EKeyInput::D;
|
||||||
return ((mKeysPressed & skMoveKeys) != 0);
|
return ((mKeysPressed & skMoveKeys) != 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue