bevy_ios_impact 0.2.0

allows using ios ImpactFeedback API to generate haptic device vibrations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use bevy::app::Plugin;

use crate::ImpactResource;

/// bevy plugin: initializes [ImpactResource] to be used in systems etc.
pub struct ImpactPlugin;

impl Plugin for ImpactPlugin {
    fn build(&self, app: &mut bevy::prelude::App) {
        app.init_resource::<ImpactResource>();
    }
}