Fix SFX and Assets

This commit is contained in:
Adam Whitehurst
2020-01-16 05:28:45 -08:00
parent d82e93b39f
commit 5959d2a5c7
12 changed files with 67 additions and 37 deletions

View File

@ -69,7 +69,7 @@ impl Input {
(self.is_pressed() && self.duration >= DEFAULT_HOLD_DURATION)
}
// Whether input has been pressed for longer than `threshold`
/// Whether input has been pressed for longer than `threshold`
pub fn is_long_press(&self, threshold: Duration) -> bool {
(self.is_pressed() && self.duration >= threshold)
}