JoyCon.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. namespace Ryujinx
  2. {
  3. /// <summary>
  4. /// Common RGB color hex codes for JoyCon coloring.
  5. /// </summary>
  6. public enum JoyConColor //Thanks to CTCaer
  7. {
  8. Body_Grey = 0x828282,
  9. Body_Neon_Blue = 0x0AB9E6,
  10. Body_Neon_Red = 0xFF3C28,
  11. Body_Neon_Yellow = 0xE6FF00,
  12. Body_Neon_Pink = 0xFF3278,
  13. Body_Neon_Green = 0x1EDC00,
  14. Body_Red = 0xE10F00,
  15. Buttons_Grey = 0x0F0F0F,
  16. Buttons_Neon_Blue = 0x001E1E,
  17. Buttons_Neon_Red = 0x1E0A0A,
  18. Buttons_Neon_Yellow = 0x142800,
  19. Buttons_Neon_Pink = 0x28001E,
  20. Buttons_Neon_Green = 0x002800,
  21. Buttons_Red = 0x280A0A
  22. }
  23. public struct JoyConLeft
  24. {
  25. public int StickUp;
  26. public int StickDown;
  27. public int StickLeft;
  28. public int StickRight;
  29. public int StickButton;
  30. public int DPadUp;
  31. public int DPadDown;
  32. public int DPadLeft;
  33. public int DPadRight;
  34. public int ButtonMinus;
  35. public int ButtonL;
  36. public int ButtonZL;
  37. public int ButtonSL;
  38. public int ButtonSR;
  39. }
  40. public struct JoyConRight
  41. {
  42. public int StickUp;
  43. public int StickDown;
  44. public int StickLeft;
  45. public int StickRight;
  46. public int StickButton;
  47. public int ButtonA;
  48. public int ButtonB;
  49. public int ButtonX;
  50. public int ButtonY;
  51. public int ButtonPlus;
  52. public int ButtonR;
  53. public int ButtonZR;
  54. public int ButtonSL;
  55. public int ButtonSR;
  56. }
  57. public struct JoyCon
  58. {
  59. public JoyConLeft Left;
  60. public JoyConRight Right;
  61. }
  62. }