Titan Two can swap mouse & keyboard from PC to either XIM 4 or XIM APEX via the KMG Capture function in Gtuner IV. Unlike XIM Link, this works reliably when using a XIM on PC. Titan Two's KMG Capture is also significantly more reliable than a USB Switch (a switch can kill kb input within a few swaps).
1. Connect mouse & keyboard to PC. Leave the controller connected to XIM. Don't connect any other devices to XIM or Titan Two.
2. Connect Titan Two to PC via the PROG port.
3. Set Gtuner IV > Device Configuration > Output Protocol to "USB Multi Interface HID".
4. In Gtuner IV > Device Configuration, select "Disable Joystick from Multi Interface HID output".
5. Create a new empty GPC script in Gtuner IV, paste the m/kb passthrough code below and transfer it to a spare Memory Slot on Titan Two. An Input Translator is not required.
#include <keyboard.gph>
#include <mouse.gph>
init {
mousemapping();
keymapping();
}
main {
if(mouse_status(MREPORT_UPDATED)) {
mouse_passthru();
}
key_passthru();
}
6. Connect a compatible power adapter to XIM APEX's USB hub. XIM 4 should work fine without additional power.
7. Connect XIM to a powered-up PC or console.
8. Connect Titan Two to XIM via the OUTPUT port.
9. Select the Memory Slot on Titan Two to enable the m/kb passthrough GPC script.
10. Activate KMG Capture in Gtuner IV (press F4).
11. Bind your kb keys and mouse buttons to Actions in XIM APEX Manager.
The power adapter is critical for this to work on XIM APEX. If Titan Two can't pull enough power from the XIM, USB Multi Interface HID won't work (OUTPUT LED remains unlit). Requirements for the power adapter are 5V 3A, 3.5mm x 1.35mm, centre-positive. A power adapter on Titan Two won't help (I use one), it needs to be on the XIM APEX.
Mouse DPI in Windows may need to be increased significantly (most mice default to 400 DPI) for use with XIM APEX. 3200 DPI is a good starting point, but may be too fast when navigating Windows.
To slow the mouse pointer on PC, go to Control Panel > Mouse > Pointer Options and reduce the pointer speed. Pointer speed won't affect in-game sensitivity while playing native m/kb PC games. Game sensitivity may need to be dialled down to a comfortable speed when using 3200 DPI.
If KMG Capture drops out for any reason, Alt-Tab across to Gtuner IV and re-activate KMG Capture. To escape KMG Capture, hit Ctrl + Esc, as per the Titan Two window prompt.
Disclaimer -
There are no mods in the above GPC script, all it does is forward mouse & kb input from PC to XIM APEX. Additional mods can be added to the GPC script, however anti-recoil may not work correctly because Titan Two can't read stick values from the XIM APEX in this configuration.
Mileage will vary in terms of mod detection on PC due to more sophisticated anti-cheat software. Though the risk of triggering anti-cheat software on PC using a Titan Two is extremely low, you do this entirely at your own peril. PC is not a supported XIM platform, so you're on your own for technical support.
Thanks to ME. on the ConsoleTuner Discord for helping to resolve a few issues with USB Multi Interface HID connectivity.