3
0

InputNode.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 <Source/Deprecated/InputNode.generated.h>
  10. #include <ScriptCanvas/Core/Node.h>
  11. #include <ScriptCanvas/Core/Graph.h>
  12. #include <AzCore/RTTI/TypeInfo.h>
  13. namespace StartingPointInput
  14. {
  15. //////////////////////////////////////////////////////////////////////////
  16. /// Input handles raw input from any source and outputs Pressed, Held, and Released input events
  17. /// This nodes id deprecated in favor of its nodeable counterpart.
  18. class InputNode
  19. : public ScriptCanvas::Node
  20. {
  21. public:
  22. SCRIPTCANVAS_NODE(InputNode);
  23. InputNode() = default;
  24. ~InputNode() override = default;
  25. InputNode(const InputNode&) = default;
  26. InputNode& operator=(const InputNode&) = default;
  27. AZStd::string m_eventName;
  28. float m_value;
  29. };
  30. }