diff --git a/src/main.rs b/src/main.rs index fc321b8..7d07a47 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,8 @@ fn main() { trekstor.update(|screen, input| { // retuyrningf false will exit loop - if input.is_just_pressed(KeyCode::BTN_TOUCH) { - println!("Touched {}x{}", input.x, input.y); + if input.is_just_released(KeyCode::BTN_TOUCH) { + println!("Released {}x{}", input.x, input.y); } true });