1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! # bevy_midi_params
//!
//! Hardware MIDI controller integration for live parameter tweaking in Bevy games.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! # use bevy::prelude::*;
//! # use bevy_midi_params::prelude::*;
//! #
//! #[derive(Resource, MidiParams)]
//! struct GameSettings {
//! #[midi(1, 0.0..1.0)]
//! pub player_speed: f32,
//!
//! #[midi(33)]
//! pub debug_mode: bool,
//! }
//!
//! impl Default for GameSettings {
//! fn default() -> Self {
//! Self {
//! player_speed: 5.0,
//! debug_mode: false,
//! }
//! }
//! }
//!
//! # fn main() {
//! App::new()
//! .add_plugins(DefaultPlugins)
//! .add_plugins(MidiParamsPlugin::default())
//! .run();
//! # }
//! ```
// Re-export everything users need
pub use MidiParams;
pub use *;
pub use *;
pub use *;
pub use *;
// For auto-registration
pub use inventory;
/// Prelude module for easy imports