Fixed button selection for joysticks.

Minor oversight in previous commit.