Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // sa22c props file, includes 1,2 and 3 button modes. Incorporates multi-blast,
- // battle mode and gesture ignitions from fett263 plus on-the-fly volume
- // controls and full access to all features with 1,2 or 3 button sabers
- //
- // New #define SA22C_NO_LOCKUP_HOLD
- // reverts to lockup being triggered only by clash + aux in 2-button mode
- // Also sets multi-blast to trigger while holding aux and swinging, rather than
- // double click and hold
- //
- // Gesture Controls
- // There are four gesture types: swing, stab, twist and thrust. For simplicity,
- // using gesture ignition will automatically skip the preon effect.
- // Below are the options to add to the config to enable
- // the various gestures
- //
- // #define SA22C_STAB_ON
- // #define SA22C_SWING_ON
- // #define SA22C_TWIST_ON
- // #define SA22C_THRUST_ON
- // #define SA22C_TWIST_OFF
- // #define SA22C_FORCE_PUSH
- //
- // #define SA22C_FORCE_PUSH_LENGTH 5
- // Allows for adjustment to Push gesture length in millis needed to trigger Force Push
- // Recommended range 1 ~ 10, 1 = shortest, easiest to trigger, 10 = longest
- //
- // If you want the gesture ignition to ALSO enter battle mode automatically
- // on ignition, add this define
- //
- // #define GESTURE_AUTO_BATTLE_MODE
- //
- // Battle mode by fett263
- //
- // Once you enter battle mode, button functions will be disabled for lockup
- // stab, melt, etc. Blaster blocks and lightning block will continue to be
- // triggered by button controls. Automatic lockup/clash detection works
- // by measuring delay of the saber blade pulling back from the clash.
- // If you clash the blade and it does not pull back during the delay period,
- // it is assumed to be a lockup and the lockup effect will show on the blade.
- // If you clash the blade and pull away, only the bgn/end lockup effects will show.
- //
- // You can adjust the threshold of this detection by using
- // #define SA22C_LOCKUP_DELAY (insert number here)
- // Default value is 200
- //
- // Battle mode features automatic clash and lockup detection plus a new
- // force push mode that will play a force or force push sound with a controlled
- // pushing gesture. Automatic clash/lockup uses the pre and post lock effects
- // so your blade style and font MUST have those capabilities to support
- // battle mode. Kudos to fett263 for his very impressive additions for OS 5
- //
- // Tightened click timings
- // I've shortened the timeout for short and double click detection from 500ms
- // to 300ms. I think it feels more responsive this way but still gives enough
- // timeout to ensure all button actions can be achieved consistently
- // I've included all button timings so they can be easily tweaked to suit
- // individual tastes.
- //
- // Button configs:
- //
- // 1 Button:
- // Activate Muted - double click and hold while OFF
- // Activate - short click while OFF
- // Play/Stop Music - double click while OFF
- // Turn off blade - hold and wait till blade is off while ON
- // Next Preset - hold and release while OFF
- // Prev Preset - hold and wait while OFF
- // Lockup - hold + hit clash while ON
- // Stab - thrust forward clash while ON
- // Lightning Block - double click and hold while ON
- // Melt - hold + thust forward clash while ON
- // Drag - hold + hit clash while ON pointing the blade tip down
- // Blaster Blocks - short click/double click/triple click while on
- // Multi-Blast - hold while swinging for one second and release
- // to trigger blaster block, swing saber while in multi-blast mode
- // to exit, hold while swinging for one second and release
- // Battle Mode - triple-click and hold while on
- // Force Effects - hold + twist the hilt while ON (while pointing up)
- // Color Change mode - hold + twist the hilt while ON (pointing down)
- // Enter Volume - Menu hold + clash while OFF
- // Volume UP - hold and release while in Volume Menu
- // Volume DOWN - click while in Volume Menu
- // Exit Volume Menu - Menu hold + clash while OFF
- // Battery Level - triple click while OFF
- //
- //
- // 2 Button:
- // POWER
- // Activate Muted - double click and hold while OFF
- // Activate - short click while OFF
- // Play/Stop Music - hold and release while OFF
- // Turn off blade - hold and wait till blade is off while ON
- // Force Effects - double click while ON
- // Volume UP - short click while OFF and in VOLUME MENU
- // Prev Preset - hold and wait while OFF
- // Color Change mode - hold + toggle AUX while ON
- // Lightning Block - double click and hold while ON
- // Melt - hold while stabbing (clash with forward motion, horizontal)
- // Battle Mode - triple-click and hold for half a second while on
- // AUX
- // Blaster blocks - short click/double click/triple click while ON
- // Multi-Blast - double-click and hold for half a second
- // to trigger blaster block, swing saber while in multi-blast mode
- // to exit, double-click and hold for half a second
- // Next Preset - short click while OFF
- // Lockup - hold while ON
- // Drag - hold while ON pointing the blade tip down
- // Enter VOLUME MENU - long click while OFF
- // Volume down - short click while OFF and in VOLUME MENU
- // Battery level - hold while off
- //
- // 3 Button: Same as two button except for the following
- //
- // AUX2
- // Lightning Block - hold while ON
- // Battle Mode - double-click and hold while on
- // Previous Preset - short click while OFF
Advertisement
Add Comment
Please, Sign In to add comment