Skip to content

masterwebx/ControllerRumbleANE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fresh Implementation - Complete Rumble System for SSF2

This folder contains everything needed to implement controller rumble/vibration support in a fresh Super Smash Flash 2 engine.

Files Overview

Documentation

  • RUMBLE_ANE_INTEGRATION.md - Complete technical documentation of the rumble system

File-Specific Integration Guides

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 persistence
  • ControlsMenu.as.md - Menu toggle functionality
  • TitleMenu.as.md - Title screen feedback
  • Character.as.md - Gameplay rumble triggers throughout character actions

ANE Implementation

  • RumbleANE/ - Complete Adobe Native Extension for XInput controller access
    • src-as3/ - ActionScript API
    • src-native/ - C++ implementation
    • build.ps1 - Build script
    • packaging/ - ANE packaging files
    • win-x86/, win-x86-64/ - Compiled native libraries

Implementation Order

  1. Build the ANE first - Run RumbleANE/build.ps1 to create RumbleANE.ane
  2. Update AIR descriptor - Add the extension to SSF2-app.xml
  3. Implement Gamepad.as - Core rumble functionality
  4. Add settings support - SaveData.as for persistence
  5. Menu integration - ControlsMenu.as and TitleMenu.as
  6. Gameplay integration - Character.as rumble triggers

Key Features Implemented

  • ✅ 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)

Testing Checklist

  • 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

Controller Support

  • 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

Performance Notes

  • 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.

About

An ANE to give Adobe Air app controller rumble support. Made for SSF2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors