And yea you will have to plug the first XIM into the controller port of the second one and that second one goes in the ps4 .
The controller is connected to the first XIM , the mouse and keyboard too .
I think it will work bc the second XIM will think the first one is just a controller.
The smart translators ( looking around ) will also work normally , since the mouse input gets manipulated based on the sensitivity and then translated intro controller code , so that controller code gets sent to the second XIM which thinks you are just pressing the buttons on the controller