Skip to content

Commit

Permalink
Also expose just_released input
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNeikos committed Sep 3, 2020
1 parent 5fd16b8 commit f84a832
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_input/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ where
pub fn get_just_pressed(&self) -> impl ExactSizeIterator<Item = &T> {
self.just_pressed.iter()
}

pub fn get_just_released(&self) -> impl ExactSizeIterator<Item = &T> {
self.just_released.iter()
}
}

0 comments on commit f84a832

Please sign in to comment.