Skip to content

Commit

Permalink
bevy 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
clinuxrulz committed Mar 23, 2024
1 parent 3731bc5 commit 1bc84af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::Arc;
use bevy::{
ecs::{
entity::Entity, event::EventWriter, query::With, system::{Query, Res}, world::World
}, hierarchy::Children, input::{mouse::MouseButton, touch::Touches, Input}, math::{Rect, Vec2}, transform::components::GlobalTransform, ui::{Node, PositionType, Style, Val}, window::{PrimaryWindow, Window}
}, hierarchy::Children, input::{mouse::MouseButton, touch::Touches, ButtonInput}, math::{Rect, Vec2}, transform::components::GlobalTransform, ui::{Node, PositionType, Style, Val}, window::{PrimaryWindow, Window}
};

use crate::{
Expand All @@ -27,7 +27,7 @@ pub fn update_missing_state<S: VirtualJoystickID>(world: &mut World) {

pub fn update_input(
mut joysticks: Query<(&Node, &GlobalTransform, &mut VirtualJoystickState)>,
mouse_buttons: Res<Input<MouseButton>>,
mouse_buttons: Res<ButtonInput<MouseButton>>,
touches: Res<Touches>,
q_windows: Query<&Window, With<PrimaryWindow>>,
) {
Expand Down

0 comments on commit 1bc84af

Please sign in to comment.