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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user