Controls.cpp 362 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #include "../Precompiled.h"
  4. #include "../Input/Controls.h"
  5. namespace Urho3D
  6. {
  7. Controls::Controls() :
  8. buttons_(0),
  9. yaw_(0.f),
  10. pitch_(0.f)
  11. {
  12. }
  13. Controls::~Controls() = default;
  14. void Controls::Reset()
  15. {
  16. buttons_ = 0;
  17. yaw_ = 0.0f;
  18. pitch_ = 0.0f;
  19. extraData_.Clear();
  20. }
  21. }