settings_input.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "common/settings_input.h"
  4. namespace Settings {
  5. namespace NativeButton {
  6. const std::array<const char*, NumButtons> mapping = {{
  7. "button_a", "button_b", "button_x", "button_y", "button_lstick",
  8. "button_rstick", "button_l", "button_r", "button_zl", "button_zr",
  9. "button_plus", "button_minus", "button_dleft", "button_dup", "button_dright",
  10. "button_ddown", "button_sl", "button_sr", "button_home", "button_screenshot",
  11. }};
  12. }
  13. namespace NativeAnalog {
  14. const std::array<const char*, NumAnalogs> mapping = {{
  15. "lstick",
  16. "rstick",
  17. }};
  18. }
  19. namespace NativeVibration {
  20. const std::array<const char*, NumVibrations> mapping = {{
  21. "left_vibration_device",
  22. "right_vibration_device",
  23. }};
  24. }
  25. namespace NativeMotion {
  26. const std::array<const char*, NumMotions> mapping = {{
  27. "motionleft",
  28. "motionright",
  29. }};
  30. }
  31. namespace NativeMouseButton {
  32. const std::array<const char*, NumMouseButtons> mapping = {{
  33. "left",
  34. "right",
  35. "middle",
  36. "forward",
  37. "back",
  38. }};
  39. }
  40. } // namespace Settings