gamepad_haptics 1.0.1
gamepad_haptics: ^1.0.1 copied to clipboard
A Flutter plugin to control haptic feedback on game controllers (iOS and Android). Supports 18 different vibration patterns with customizable intensity and sharpness.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2025-10-12 #
Added #
- Initial release of gamepad_haptics plugin
- 18 pre-defined vibration patterns:
- relaxing
- tranquil
- delicate
- gentle
- easy
- affectionate
- moderate
- deep
- rhythmic
- pulsating
- dynamic
- balanced
- extreme
- thunder
- skull
- volcanic
- helicopter
- tornado
- Customizable intensity parameter (0.0-1.0)
- Customizable sharpness parameter (0.0-1.0)
- Controller connection detection
- Automatic pattern looping
- Complete example app with UI controls
- Comprehensive documentation
Platform Support #
- iOS: Core Haptics API integration for game controllers
API #
GamepadHaptics.startVibration()
- Start haptic feedback with parametersGamepadHaptics.stopVibration()
- Stop haptic feedbackGamepadHaptics.isControllerConnected()
- Check controller statusVibrationPattern
enum with 18 patternsVibrationPatternExtension
for pattern metadata
Documentation #
- Complete README with usage examples
- API reference documentation
- Platform setup instructions
- Troubleshooting guide
- Best practices section
Example #
- Full-featured example app
- Pattern selection UI
- Intensity and sharpness sliders
- Controller status indicator
- Real-time parameter adjustment
[Unreleased] #
Planned Features #
- Custom pattern creation API
- Pattern preview functionality
- Haptic strength calibration
- Multiple controller support
- Pattern editor UI component
- Haptic recording and playback
- Advanced timing controls
- Pattern interpolation
Release Notes #
Version 1.0.0 #
This is the first stable release of gamepad_haptics. The plugin provides a simple yet powerful API for controlling haptic feedback on game controllers across iOS platform.
Key Highlights:
- Easy-to-use API with sensible defaults
- Rich library of 18 pre-designed vibration patterns
- Fine-grained control over haptic parameters
- Cross-platform compatibility
- Production-ready with comprehensive documentation
Getting Started:
dependencies:
gamepad_haptics: ^1.0.0
Quick Example:
await GamepadHaptics.startVibration(
intensity: 0.8,
sharpness: 0.7,
pattern: VibrationPattern.relaxing,
);
For detailed usage instructions, see the README.