Fixed brain-dead bug in displaying joystick configurations.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2434 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2006-09-10 01:44:47 +00:00
parent ed00242e69
commit 9d7cc6c100
+2
View File
@@ -393,8 +393,10 @@ InterrogateInputState (int template, int control, int index, char *buffer, int m
break;
case VCONTROL_JOYAXIS:
snprintf (buffer, maxlen, "[J%d A%d %c]", g.gesture.axis.port, g.gesture.axis.index, g.gesture.axis.polarity > 0 ? '+' : '-');
break;
case VCONTROL_JOYHAT:
snprintf (buffer, maxlen, "[J%d H%d %d]", g.gesture.hat.port, g.gesture.hat.index, g.gesture.hat.dir);
break;
default:
/* Something we don't handle yet */
buffer[0] = 0;