1786006567
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user