From efe6d32c21885076147cc70822ea93b080947a84 Mon Sep 17 00:00:00 2001 From: thoughton Date: Tue, 19 Jun 2018 21:22:09 +0100 Subject: [PATCH] Added "Center" button to the GamepadState printout --- code/Samples/TestInput/TestInput.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/Samples/TestInput/TestInput.cc b/code/Samples/TestInput/TestInput.cc index 60d16e3a9..a837d7393 100644 --- a/code/Samples/TestInput/TestInput.cc +++ b/code/Samples/TestInput/TestInput.cc @@ -296,8 +296,9 @@ TestInputApp::printGamepadState(int gamepadIndex) { Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::X) ? " X" : " "); Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::Y) ? " Y\n\r" : "\n\r"); Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::Start) ? " Start" : " "); - Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::Back) ? " Back\n\r" : "\n\r"); - Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::LeftBumper) ? " LeftBumper\t" : " "); + Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::Back) ? " Back" : " "); + Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::Center) ? " Center\n\r" : " \n\r"); + Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::LeftBumper) ? " LeftBumper" : " "); Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::RightBumper) ? " RightBumper\n\r" : "\n\r"); Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::DPadLeft) ? " DPadLeft" : " "); Dbg::PrintF(Input::GamepadButtonPressed(gamepadIndex, GamepadButton::DPadRight) ? " DPadRight" : " ");