Site Tools
Sidebar
This is an old revision of the document!
USB HID
The Output Protocol “USB Multi Interface HID” is a bit special.
It allows the Output to be send as keyboard, mouse and gamepad controls. The connect console/PC on the T2 Output Port will see the T2 as a keyboard/mouse.
This requires different scripting approaches than the usual console controller output protocols. Instead of “set_val” you have to use mouse_set (for mouse output) or key_set (for keyboard output).
A very basic example to forward all mouse and keyboard input to the output port will look like this:
init{ mousemapping(); // clears defaultt T2 mouse mappings keymapping(); // clears default T2 keyboard mappings } main{ mouse_passthru(); // forward mouse input to output key_passthru(); // forward keyboard input to output }
Utilizing this “USB Multi Interface HID” Output Protocol you can do scripting with the T2 for the PC. Pablosscripts created a forum post with some information about it: Pablo's Beginners Guide to Scripting for PC
You can find a few scripts for this protocol in the Online Resource within GTuner IV: Search for “usb-hid”.
Some USB Script specific forum links:
USB-HID Anti Recoil (USB Multi Interface HID)
USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HID)
… WORK IN PROGRESS …