core: button: do not warn on double press
If running on startup, this happens on every keypress with phoc.
This commit is contained in:
parent
14633c7665
commit
eb37361be6
1 changed files with 0 additions and 1 deletions
|
|
@ -288,7 +288,6 @@ impl<D: Display, K: Keyboard> Button<D, K> {
|
||||||
pub fn press(&mut self, id: usize, x: f64, y: f64)
|
pub fn press(&mut self, id: usize, x: f64, y: f64)
|
||||||
{
|
{
|
||||||
if self.presses[id].is_some() {
|
if self.presses[id].is_some() {
|
||||||
eprintln!("warn: pressed same ID twice before releasing");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue