settings.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 NativeVibration {
  21. const std::array<const char*, NumVibrations> mapping = {{
  22. "left_vibration_device",
  23. "right_vibration_device",
  24. }};
  25. }
  26. namespace NativeMotion {
  27. const std::array<const char*, NumMotions> mapping = {{
  28. "motionleft",
  29. "motionright",
  30. }};
  31. }
  32. namespace NativeMouseButton {
  33. const std::array<const char*, NumMouseButtons> mapping = {{
  34. "left",
  35. "right",
  36. "middle",
  37. "forward",
  38. "back",
  39. }};
  40. }
  41. } // namespace Settings