Lil__Nicky

Untitled

Apr 1st, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. // sa22c props file, includes 1,2 and 3 button modes. Incorporates multi-blast,
  2. // battle mode and gesture ignitions from fett263 plus on-the-fly volume
  3. // controls and full access to all features with 1,2 or 3 button sabers
  4. //
  5. // New #define SA22C_NO_LOCKUP_HOLD
  6. // reverts to lockup being triggered only by clash + aux in 2-button mode
  7. // Also sets multi-blast to trigger while holding aux and swinging, rather than
  8. // double click and hold
  9. //
  10. // Gesture Controls
  11. // There are four gesture types: swing, stab, twist and thrust. For simplicity,
  12. // using gesture ignition will automatically skip the preon effect.
  13. // Below are the options to add to the config to enable
  14. // the various gestures
  15. //
  16. // #define SA22C_STAB_ON
  17. // #define SA22C_SWING_ON
  18. // #define SA22C_TWIST_ON
  19. // #define SA22C_THRUST_ON
  20. // #define SA22C_TWIST_OFF
  21. // #define SA22C_FORCE_PUSH
  22. //
  23. // #define SA22C_FORCE_PUSH_LENGTH 5
  24. // Allows for adjustment to Push gesture length in millis needed to trigger Force Push
  25. // Recommended range 1 ~ 10, 1 = shortest, easiest to trigger, 10 = longest
  26. //
  27. // If you want the gesture ignition to ALSO enter battle mode automatically
  28. // on ignition, add this define
  29. //
  30. // #define GESTURE_AUTO_BATTLE_MODE
  31. //
  32. // Battle mode by fett263
  33. //
  34. // Once you enter battle mode, button functions will be disabled for lockup
  35. // stab, melt, etc. Blaster blocks and lightning block will continue to be
  36. // triggered by button controls. Automatic lockup/clash detection works
  37. // by measuring delay of the saber blade pulling back from the clash.
  38. // If you clash the blade and it does not pull back during the delay period,
  39. // it is assumed to be a lockup and the lockup effect will show on the blade.
  40. // If you clash the blade and pull away, only the bgn/end lockup effects will show.
  41. //
  42. // You can adjust the threshold of this detection by using
  43. // #define SA22C_LOCKUP_DELAY (insert number here)
  44. // Default value is 200
  45. //
  46. // Battle mode features automatic clash and lockup detection plus a new
  47. // force push mode that will play a force or force push sound with a controlled
  48. // pushing gesture. Automatic clash/lockup uses the pre and post lock effects
  49. // so your blade style and font MUST have those capabilities to support
  50. // battle mode. Kudos to fett263 for his very impressive additions for OS 5
  51. //
  52. // Tightened click timings
  53. // I've shortened the timeout for short and double click detection from 500ms
  54. // to 300ms. I think it feels more responsive this way but still gives enough
  55. // timeout to ensure all button actions can be achieved consistently
  56. // I've included all button timings so they can be easily tweaked to suit
  57. // individual tastes.
  58. //
  59. // Button configs:
  60. //
  61. // 1 Button:
  62. // Activate Muted - double click and hold while OFF
  63. // Activate - short click while OFF
  64. // Play/Stop Music - double click while OFF
  65. // Turn off blade - hold and wait till blade is off while ON
  66. // Next Preset - hold and release while OFF
  67. // Prev Preset - hold and wait while OFF
  68. // Lockup - hold + hit clash while ON
  69. // Stab - thrust forward clash while ON
  70. // Lightning Block - double click and hold while ON
  71. // Melt - hold + thust forward clash while ON
  72. // Drag - hold + hit clash while ON pointing the blade tip down
  73. // Blaster Blocks - short click/double click/triple click while on
  74. // Multi-Blast - hold while swinging for one second and release
  75. // to trigger blaster block, swing saber while in multi-blast mode
  76. // to exit, hold while swinging for one second and release
  77. // Battle Mode - triple-click and hold while on
  78. // Force Effects - hold + twist the hilt while ON (while pointing up)
  79. // Color Change mode - hold + twist the hilt while ON (pointing down)
  80. // Enter Volume - Menu hold + clash while OFF
  81. // Volume UP - hold and release while in Volume Menu
  82. // Volume DOWN - click while in Volume Menu
  83. // Exit Volume Menu - Menu hold + clash while OFF
  84. // Battery Level - triple click while OFF
  85. //
  86. //
  87. // 2 Button:
  88. // POWER
  89. // Activate Muted - double click and hold while OFF
  90. // Activate - short click while OFF
  91. // Play/Stop Music - hold and release while OFF
  92. // Turn off blade - hold and wait till blade is off while ON
  93. // Force Effects - double click while ON
  94. // Volume UP - short click while OFF and in VOLUME MENU
  95. // Prev Preset - hold and wait while OFF
  96. // Color Change mode - hold + toggle AUX while ON
  97. // Lightning Block - double click and hold while ON
  98. // Melt - hold while stabbing (clash with forward motion, horizontal)
  99. // Battle Mode - triple-click and hold for half a second while on
  100. // AUX
  101. // Blaster blocks - short click/double click/triple click while ON
  102. // Multi-Blast - double-click and hold for half a second
  103. // to trigger blaster block, swing saber while in multi-blast mode
  104. // to exit, double-click and hold for half a second
  105. // Next Preset - short click while OFF
  106. // Lockup - hold while ON
  107. // Drag - hold while ON pointing the blade tip down
  108. // Enter VOLUME MENU - long click while OFF
  109. // Volume down - short click while OFF and in VOLUME MENU
  110. // Battery level - hold while off
  111. //
  112. // 3 Button: Same as two button except for the following
  113. //
  114. // AUX2
  115. // Lightning Block - hold while ON
  116. // Battle Mode - double-click and hold while on
  117. // Previous Preset - short click while OFF
  118.  
  119.  
Advertisement
Add Comment
Please, Sign In to add comment