use bevy::ecs::component::Component;
use crate::controller_layout::ControllerLayout;
#[derive(Component)]
pub struct ControllerInterface {
controller_layout: ControllerLayout,
}
impl ControllerInterface {
pub(crate) fn new(controller_type: ControllerLayout) -> Self {
Self {
controller_layout: controller_type,
}
}
pub fn layout<'a>(&'a self) -> &'a ControllerLayout {
&self.controller_layout
}
}