1786006970
This commit is contained in:
@@ -18,7 +18,7 @@ fn main() {
|
||||
|
||||
trekstor.update(|ctx, state| {
|
||||
// retuyrningf false will exit loop
|
||||
if ctx.input.is_down(KeyCode::BTN_TOUCH) {
|
||||
if ctx.input.is_just_released(KeyCode::BTN_TOUCH) {
|
||||
println!("Released {}x{}", ctx.input.x, ctx.input.y);
|
||||
state.x = ctx.input.x;
|
||||
state.y = ctx.input.y;
|
||||
|
||||
Reference in New Issue
Block a user