Advertisement
Guest User

Untitled

a guest
Nov 11th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.63 KB | None | 0 0
  1. [00A9CCD4] // pointer to joystick data
  2.  
  3. // Joystick values
  4. // 00   X Axis +
  5. // 01   Y Axis +
  6. // 02   Z Axis +
  7. // 03   X Rotate +
  8. // 04   Y Rotate +
  9. // 05   Z Rotate +
  10. // 06   Slider +
  11. // 07   X Axis +
  12. // 08   Y Axis +
  13. // 09   Z Axis +
  14. // 0A   X Rotate +
  15. // 0B   Y Rotate +
  16. // 0C   Z Rotate +
  17. // 0D   Slider +
  18. // FF   None
  19. // Button values
  20. // 00000000     None
  21. // 00000001     B1
  22. // 00000002     B2
  23. // 00000004     B3
  24. // 00000008     B4
  25. // 00000010     B5
  26. // 00000020     B6
  27. // 00000040     B7
  28. // 00000080     B8
  29. // 00000100     B9
  30. // 00000200     B10
  31. // 00000400     B11
  32. // 00000800     B12
  33. // 00001000     B13
  34. // 00002000     B14
  35. // 00004000     B15
  36. // 00008000     B16
  37. // 00010000     POV Y +
  38. // 00020000     POV Y -
  39. // 00040000     POV X +
  40. // 00080000     POV X -
  41.  
  42. typedef struct NO_ALIGN st_joystick
  43. {
  44.     int8_t movLR;
  45.     int8_t movFB;
  46.     int8_t movRALR;
  47.     int8_t movRAFB;
  48.     uint32_t selectUp;
  49.     uint32_t selectDown;
  50.     uint32_t selectLeft;
  51.     uint32_t selectRight;
  52.     uint32_t apMiddle;
  53.     uint32_t apRight;
  54.     uint32_t apLeft;
  55.     uint32_t apTop;
  56.     uint32_t menuOpenClose;
  57.     uint32_t prevPage_camera;
  58.     uint32_t nextPage_apAlt;
  59.     uint32_t menuOpenDecide;
  60.     uint32_t unknown01;
  61. } JOYSTICK_CONFIG;
  62.  
  63. // To edit it, open the pad button config menu, this will make use of the pointer stated above, then you can copy your own data on it
  64. // When closing the menu the data will be sent to the ship and saved
  65.  
  66. // Setting a button to NONE doesn't seem to work and the game overwrites it with the default value
  67. // Setting to an invalid value seems to work but might break things
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement