Expand description
Exposes UIImpactFeedbackGenerator API via Bevy Resource to be easily accessible in Bevy Projects.
§Example:
use bevy::prelude::*;
let mut app = App::new();
app.add_plugins(bevy_ios_impact::ImpactPlugin);
fn my_system(mut impacts: ResMut<bevy_ios_impact::ImpactResource>) {
// triggere the impact with different impact strengths (or 'style')
impacts.impact(bevy_ios_impact::FeedbackStyle::Light);
}
Structs§
- bevy plugin: initializes ImpactResource to be used in systems etc.
- bevy resource: offers interaction with ios impact feedback generators from bevy systems.