core: button: do not warn on double press

If running on startup, this happens on every keypress with phoc.
This commit is contained in:
Richard Acayan 2024-07-24 22:02:49 -04:00
parent 14633c7665
commit eb37361be6

View file

@ -288,7 +288,6 @@ impl<D: Display, K: Keyboard> Button<D, K> {
pub fn press(&mut self, id: usize, x: f64, y: f64)
{
if self.presses[id].is_some() {
eprintln!("warn: pressed same ID twice before releasing");
return;
}