Advertisement
em00se

re4 joy struct

Jul 27th, 2022
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. enum JOY_BTN : unsigned __int32
  2. {
  3. JOY_DPAD_LEFT = 0x1,
  4. JOY_DPAD_RIGHT = 0x2,
  5. JOY_DPAD_DOWN = 0x4,
  6. JOY_DPAD_UP = 0x8,
  7. JOY_RT = 0x10,
  8. JOY_RB = 0x20,
  9. JOY_LB = 0x40,
  10. JOY_LT = 0x80,
  11. JOY_A = 0x100,
  12. JOY_B = 0x200,
  13. JOY_X = 0x400,
  14. JOY_Y = 0x800,
  15. JOY_START = 0x1000,
  16. JOY_BACK = 0x2000,
  17. JOY_RS = 0x4000,
  18. JOY_LS = 0x8000,
  19. JOY_LS_LEFT = 0x10000,
  20. JOY_LS_RIGHT = 0x20000,
  21. JOY_LS_DOWN = 0x40000,
  22. JOY_LS_UP = 0x80000,
  23. JOY_RS_LEFT = 0x100000,
  24. JOY_RS_RIGHT = 0x200000,
  25. JOY_RS_DOWN = 0x400000,
  26. JOY_RS_UP = 0x800000,
  27. };
  28.  
  29. struct __declspec(align(4)) JOY
  30. {
  31. int leftStick_X_0;
  32. int leftStick_Y_4;
  33. int8_t rightStick_X_8;
  34. int8_t rightStick_Y_9;
  35. uint8_t leftTrigger_A;
  36. uint8_t rightTrigger_B;
  37. int8_t unk_C;
  38. int8_t unk_D;
  39. DWORD unk_10;
  40. JOY_BTN buttonStates0_14;
  41. JOY_BTN buttonsOn_18;
  42. JOY_BTN buttonStates2_unused_1C;
  43. JOY_BTN buttonsTrg_20;
  44. JOY_BTN buttonStates4_24;
  45. JOY_BTN buttonStates5_unused_28;
  46. JOY_BTN buttonStates6_unused_2C;
  47. JOY_BTN buttonsRep_30;
  48. JOY_BTN buttonStates8_unused_34;
  49. JOY_BTN buttonStates9_unused_38;
  50. JOY_BTN buttonStates10_unused_3C;
  51. _BYTE unk_40[40];
  52. char unkVibRelated_68;
  53. _BYTE pad_6A[3];
  54. WORD unkVibRelated_6C[80];
  55. _BYTE unk_10C[12];
  56. int pc_leftStick_X_118;
  57. int pc_leftStick_Y_11C;
  58. int8_t pc_rightStick_X_120;
  59. int8_t pc_rightStick_Y_121;
  60. __int16 pc_unk_A_122;
  61. _BYTE unk_124[4];
  62. int pc_buttonStates0_128;
  63. int pc_buttonsOn_12C;
  64. int pc_buttonStates2_130;
  65. _BYTE unk_134[312];
  66. int8_t wpad_rightStick_X_26C;
  67. int8_t wpad_rightStick_Y_26D;
  68. };
  69.  
  70. JOY at C63008 (1.1.0), C5F788 (1.0.6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement