Skip to content

Commit 12587f1

Browse files
Fix println formatting for touchpad tests
1 parent 1c27890 commit 12587f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/game-controller.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ fn main() -> Result<(), String> {
8787
}
8888
Event::ControllerButtonDown { button, .. } => println!("Button {:?} down", button),
8989
Event::ControllerButtonUp { button, .. } => println!("Button {:?} up", button),
90-
Event::ControllerTouchpadDown { touchpad, finger, x, y, ..} => println!("Touchpad {touchpad} down finger:{finger} x:{x} y:{y}"),
91-
Event::ControllerTouchpadMotion { touchpad, finger, x, y, ..} => println!("Touchpad {touchpad} move finger:{finger} x:{x} y:{y}"),
92-
Event::ControllerTouchpadUp { touchpad, finger, x, y, ..} => println!("Touchpad {touchpad} up finger:{finger} x:{x} y:{y}"),
90+
Event::ControllerTouchpadDown { touchpad, finger, x, y, ..} => println!("Touchpad {} down finger:{} x:{} y:{}", touchpad, finger, x, y),
91+
Event::ControllerTouchpadMotion { touchpad, finger, x, y, ..} => println!("Touchpad {} move finger:{} x:{} y:{}", touchpad, finger, x, y),
92+
Event::ControllerTouchpadUp { touchpad, finger, x, y, ..} => println!("Touchpad {} up finger:{} x:{} y:{}", touchpad, finger, x, y),
9393
Event::Quit { .. } => break,
9494
_ => (),
9595
}

0 commit comments

Comments
 (0)