AnimViewportInputController.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzFramework/Viewport/SingleViewportController.h>
  10. #include <AzFramework/Input/Events/InputChannelEventListener.h>
  11. #include <AzToolsFramework/Viewport/ViewportTypes.h>
  12. namespace AzToolsFramework
  13. {
  14. class ManipulatorManager;
  15. }
  16. namespace EMStudio
  17. {
  18. //! Provide input control for manipulators in AnimViewport
  19. class AnimViewportInputController
  20. : public AzFramework::SingleViewportController
  21. {
  22. public:
  23. AZ_TYPE_INFO(AnimViewportInputController, "{A1629CB6-2292-4B7D-8B49-F614BD4746AA}");
  24. AZ_CLASS_ALLOCATOR(AnimViewportInputController, AZ::SystemAllocator)
  25. // AzFramework::SingleViewportController overrides...
  26. bool HandleInputChannelEvent(const AzFramework::ViewportControllerInputEvent& event) override;
  27. private:
  28. AzToolsFramework::ViewportInteraction::MouseInteraction m_mouseInteraction;
  29. };
  30. } // namespace EMStudio