mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix SFX and Assets
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user