This folder contains everything needed to implement controller rumble/vibration support in a fresh Super Smash Flash 2 engine.
RUMBLE_ANE_INTEGRATION.md- Complete technical documentation of the rumble system
These .as.md files contain the exact code changes needed for each SSF2 file:
Gamepad.as.md- Core rumble implementation (most important file)SaveData.as.md- Settings persistenceControlsMenu.as.md- Menu toggle functionalityTitleMenu.as.md- Title screen feedbackCharacter.as.md- Gameplay rumble triggers throughout character actions
RumbleANE/- Complete Adobe Native Extension for XInput controller accesssrc-as3/- ActionScript APIsrc-native/- C++ implementationbuild.ps1- Build scriptpackaging/- ANE packaging fileswin-x86/,win-x86-64/- Compiled native libraries
- Build the ANE first - Run
RumbleANE/build.ps1to createRumbleANE.ane - Update AIR descriptor - Add the extension to
SSF2-app.xml - Implement Gamepad.as - Core rumble functionality
- Add settings support - SaveData.as for persistence
- Menu integration - ControlsMenu.as and TitleMenu.as
- Gameplay integration - Character.as rumble triggers
- ✅ Dynamic XInput controller detection
- ✅ ANE-based native vibration control
- ✅ Comprehensive gameplay feedback
- ✅ Settings persistence
- ✅ Menu controls and feedback
- ✅ Debug logging system
- ✅ Rate limiting and error handling
- ✅ Multi-controller support (up to 4 players)
- ANE compiles successfully
- Game launches without ANE errors
- Title screen rumbles when pressing Play
- Controls menu TAUNT button toggles rumble
- In-game combat provides appropriate feedback
- Settings persist between sessions
- Debug logging works when enabled
- Xbox 360 controllers
- Xbox One controllers
- Xbox Series X|S controllers
- All use XInput API for consistent behavior
- 3rd party software such as DualSenseX for other controllers
- Rumble calls are non-blocking
- Rate limited to 60Hz maximum
- Graceful fallback if ANE fails
- No impact on gameplay performance
This implementation provides professional-grade haptic feedback that enhances the SSF2 experience while maintaining game stability and performance.