settings.cpp 914 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2020 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "input_common/settings.h"
  5. namespace Settings {
  6. namespace NativeButton {
  7. const std::array<const char*, NumButtons> mapping = {{
  8. "button_a", "button_b", "button_x", "button_y", "button_lstick",
  9. "button_rstick", "button_l", "button_r", "button_zl", "button_zr",
  10. "button_plus", "button_minus", "button_dleft", "button_dup", "button_dright",
  11. "button_ddown", "button_sl", "button_sr", "button_home", "button_screenshot",
  12. }};
  13. }
  14. namespace NativeAnalog {
  15. const std::array<const char*, NumAnalogs> mapping = {{
  16. "lstick",
  17. "rstick",
  18. }};
  19. }
  20. namespace NativeMouseButton {
  21. const std::array<const char*, NumMouseButtons> mapping = {{
  22. "left",
  23. "right",
  24. "middle",
  25. "forward",
  26. "back",
  27. }};
  28. }
  29. } // namespace Settings