1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use bevy::prelude::*;
use input::InputPlugin;
pub(crate) use input::{
    DragUpdateType, MouseClickedEvent, MouseDoubleClickedEvent, MouseDraggedEvent, MousePosition,
    MouseSet,
};
use pointer::PointerPlugin;
pub(crate) use pointer::{Pointer, PointerSet};

mod input;
mod pointer;

pub(crate) struct MousePlugin;

impl Plugin for MousePlugin {
    fn build(&self, app: &mut App) {
        app.add_plugins((InputPlugin, PointerPlugin));
    }
}