mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: call joyReset() when changing controllers
This needs to be called for controller reassignments to take effect in MP modes
This commit is contained in:
1 parent
0ac5fdd5c3
commit
30071e8f64
1 file changed
+2
@@ -597,8 +597,10 @@ static MenuItemHandlerResult menuhandlerController(s32 operation, struct menuite
|
|||||||
if (data->dropdown.value == 0) {
|
if (data->dropdown.value == 0) {
|
||||||
// unassign controller
|
// unassign controller
|
||||||
inputAssignController(g_ExtMenuPlayer, -1);
|
inputAssignController(g_ExtMenuPlayer, -1);
|
||||||
|
joyReset();
|
||||||
} else if (data->dropdown.value <= numCtrls) {
|
} else if (data->dropdown.value <= numCtrls) {
|
||||||
inputAssignController(g_ExtMenuPlayer, ctrls[data->dropdown.value - 1]);
|
inputAssignController(g_ExtMenuPlayer, ctrls[data->dropdown.value - 1]);
|
||||||
|
joyReset();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MENUOP_GETSELECTEDINDEX:
|
case MENUOP_GETSELECTEDINDEX:
|
||||||
|
|||||||
Reference in new issue
Block a user