From 2d8e15600bd9bf020f90a25300c0cf01ac1e2984 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Sat, 10 Jan 2009 16:23:51 +0000 Subject: [PATCH] NJoy test printf spam when not pressing any button fix (by tinctorius) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1844 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_nJoy_Testing/Src/nJoy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Plugins/Plugin_nJoy_Testing/Src/nJoy.cpp b/Source/Plugins/Plugin_nJoy_Testing/Src/nJoy.cpp index 5dec6634c9..397a111e71 100644 --- a/Source/Plugins/Plugin_nJoy_Testing/Src/nJoy.cpp +++ b/Source/Plugins/Plugin_nJoy_Testing/Src/nJoy.cpp @@ -666,6 +666,8 @@ void GetJoyState(int controller) case 'H': printf("We aren't Expecting Hat here!\n"); break; + case '\0': // When no button is being pressed + break; default: printf("Unknown button type %c, number %d, Full %s\n", Type, a, joysticks[controller].buttons[a].c_str()); break;