Wii: Display all hat directions in the joystick buttons menu instead of just up.

git-svn-id: https://svn.eduke32.com/eduke32@4828 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-12-18 18:16:29 +00:00
parent 989f182eb4
commit ac4bbaf0f1

View file

@ -1309,7 +1309,7 @@ void M_Init(void)
MEO_MOUSESETUPBTNS[i] = MEO_MOUSEJOYSETUPBTNS_TEMPLATE; MEO_MOUSESETUPBTNS[i] = MEO_MOUSEJOYSETUPBTNS_TEMPLATE;
MEO_MOUSESETUPBTNS[i].data = &ud.config.MouseFunctions[MenuMouseDataIndex[i][0]][MenuMouseDataIndex[i][1]]; MEO_MOUSESETUPBTNS[i].data = &ud.config.MouseFunctions[MenuMouseDataIndex[i][0]][MenuMouseDataIndex[i][1]];
} }
for (i = 0; i < 2*joynumbuttons + 2*joynumhats; ++i) for (i = 0; i < 2*joynumbuttons + 8*joynumhats; ++i)
{ {
if (i < 2*joynumbuttons) if (i < 2*joynumbuttons)
{ {
@ -1330,7 +1330,7 @@ void M_Init(void)
MEO_JOYSTICKBTNS[i] = MEO_MOUSEJOYSETUPBTNS_TEMPLATE; MEO_JOYSTICKBTNS[i] = MEO_MOUSEJOYSETUPBTNS_TEMPLATE;
MEO_JOYSTICKBTNS[i].data = &ud.config.JoystickFunctions[i>>1][i&1]; MEO_JOYSTICKBTNS[i].data = &ud.config.JoystickFunctions[i>>1][i&1];
} }
M_JOYSTICKBTNS.numEntries = 2*joynumbuttons + 2*joynumhats; M_JOYSTICKBTNS.numEntries = 2*joynumbuttons + 8*joynumhats;
for (i = 0; i < joynumaxes; ++i) for (i = 0; i < joynumaxes; ++i)
{ {
ME_JOYSTICKAXES[i] = ME_JOYSTICKAXES_TEMPLATE; ME_JOYSTICKAXES[i] = ME_JOYSTICKAXES_TEMPLATE;