|
overridevirtual |
The interface inherited from NativeScriptComponent, which is called every engine loop frame. We implemented mainly camera control here, the reason is query input has better performance than event.
@breif Only update view while viewport is hovered.
@breif Only update view while viewport is hovered.
Reimplemented from Spices::NativeScriptComponent.
Definition at line 27 of file CameraController.cpp.
References Spices::Mouse::ButtonLeft, Spices::Mouse::ButtonMiddle, Spices::Mouse::ButtonRight, Spices::Input::IsKeyPressed(), Spices::Input::IsMouseButtonPressed(), Spices::Key::LeftAlt, and UpdateView().