summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorXTra.KrazzY <XTra.KrazzY@gmail.com>2009-01-10 16:23:51 +0000
committerXTra.KrazzY <XTra.KrazzY@gmail.com>2009-01-10 16:23:51 +0000
commit2d8e15600bd9bf020f90a25300c0cf01ac1e2984 (patch)
treecdcd0f36647eb3ccbb9c58b12ba84432a29362c2 /Source
parent2e9837e564c40c805669716705bc4f05dffbdb0d (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_nJoy_Testing/Src/nJoy.cpp2
1 files changed, 2 insertions, 0 deletions
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;