1786006567

This commit is contained in:
2026-08-06 10:56:07 +02:00
parent 0525eae64f
commit bd63754773
2 changed files with 14 additions and 15 deletions

View File

@@ -8,10 +8,10 @@ use crate::trekstor::Trekstor;
fn main() {
let mut trekstor = Trekstor::new(60);
trekstor.update(|screen, input| {
trekstor.update(|ctx| {
// retuyrningf false will exit loop
if input.is_just_released(KeyCode::BTN_TOUCH) {
println!("Released {}x{}", input.x, input.y);
if ctx.input.is_just_released(KeyCode::BTN_TOUCH) {
println!("Released {}x{}", ctx.input.x, ctx.input.y);
}
true
});