input.h 680 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2012-2014 Daniele Bartolini and individual contributors.
  3. * License: https://github.com/taylor001/crown/blob/master/LICENSE
  4. */
  5. #pragma once
  6. #include "input_types.h"
  7. namespace crown
  8. {
  9. /// @defgroup Input Input
  10. /// Global input-related functions.
  11. ///
  12. /// @ingroup Input
  13. namespace input_globals
  14. {
  15. /// Initializes the input system.
  16. void init();
  17. /// Shutdowns the input system.
  18. void shutdown();
  19. /// Updates input devices.
  20. void update();
  21. /// Returns the default keyboard.
  22. Keyboard& keyboard();
  23. /// Returns the default mouse.
  24. Mouse& mouse();
  25. /// Rettuns the default touch panel.
  26. Touch& touch();
  27. } // namespace input_globals
  28. } // namespace crown