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