Input.cpp 449 B

12345678910111213141516171819202122
  1. // Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <anki/input/Input.h>
  6. #include <cstring>
  7. namespace anki
  8. {
  9. void Input::reset()
  10. {
  11. zeroMemory(m_keys);
  12. zeroMemory(m_mouseBtns);
  13. m_mousePosNdc = Vec2(-1.0f);
  14. m_mousePosWin = UVec2(0u);
  15. zeroMemory(m_events);
  16. zeroMemory(m_textInput);
  17. }
  18. } // end namespace anki