From d9d0926f10d51acc5b8935da2363a2fb3959fc3e Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 5 Sep 2011 04:03:49 +0000 Subject: [PATCH] Print a line to stdout if gamepad-debug is enabled after each frame (which makes it easier to see which events are handled in the same frame). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9750 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/irr_driver.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index c912c98f9..d5389e3f4 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -1213,7 +1213,12 @@ void IrrDriver::update(float dt) { main_loop->abort(); } - + if (UserConfigParams::m_gamepad_debug) + { + // Print a dividing line so that it's easier to see which events + // get received in which order in the one frame. + printf("-------------------------------------\n"); + } World *world = World::getWorld();