USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HID)

Documentation, usage tips and configuration guides for Titan Two scripts and bytecodes published by the community users.

USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HID)

Postby Scachi » Fri Sep 20, 2019 7:01 am

USB-HID GPad2KM, Version 1.0.0 : First Release

Convert a PS4/Xbox/..gamepad to work as Mouse/Keyboard by using the "USB Multi Interface HID" output protocol.

Required Titan Two Configuration
  • Tick "Disable Joystick from Multi Interface HID output" in: Gtuner IV ->Device Configuration -> Device Options
  • Set the Output Protocol to "Usb Multi Interface HID" in: Gtuner IV ->Device Configuration -> Output Protocol
    or let the script activate the protocol when the script starts (default)

To Download
Search for "USB-HID GPad2KM" in Gtuner IV "Online Resource" panel.

Configuration via Interactive Configuration.

Features
  • Stick to Mouse movement mapping with optional alternative sensitivity (ADS)
  • Button to Mouse button mapping
  • Stick to Keyboard mapping (WSAD movement)
  • Button to Keyboard mapping
  • All mappings fully customizable via Interactive Configuration

Default Mappings
  • Control PS4/XBox : Function
  • RIGHT_STICK : MOUSE MOVEMENT
  • R2/RT : MOUSE BUTTON_1
  • L2/LT : MOUSE BUTTON_2
  • LEFT-STICK Up/Down/left/Right : KEY_W/KEY_S/KEY_A/KEY_D
  • CROSS/A : KEY_1
  • CIRCLE/B : KEY_2
  • TRIANGLE/Y : KEY_3
  • SQUARE/X : KEY_4
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby SpecialEffect » Fri Sep 20, 2019 2:23 pm

Very nice indeed. :)
User avatar
SpecialEffect
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 203
Joined: Mon Apr 07, 2014 3:26 pm

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Max10 » Tue Oct 22, 2019 6:45 am

Good afternoon. I correctly understood that this is an opportunity to play with a gamepad, like on a mouse, then tell me how to add some MODZ to this configuration for example. Uncharted so that it all works together in one Titan Two slot. Thanks in advance for your help
User avatar
Max10
Captain
Captain
 
Posts: 506
Joined: Wed Apr 03, 2019 6:04 am

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Scachi » Tue Oct 22, 2019 8:19 am

Your modz need to use "key_set" and "mouse_set" instead of set_val for it to work as keyboard/mouse output.
What mod are you looking for ?
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Max10 » Tue Oct 22, 2019 8:54 am

I want to use this UNCHARTED The Lost Legacy Modpack
User avatar
Max10
Captain
Captain
 
Posts: 506
Joined: Wed Apr 03, 2019 6:04 am

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Scachi » Tue Oct 22, 2019 11:24 am

Max10 wrote:I want to use this UNCHARTED The Lost Legacy Modpack

You can't simply merge them.
My script "USB-HID Gamepad 2 Keyboard+Mouse"is for playing games with a gamepad that are designed for mouse & keyboard only.
The modpack is for playing with controller also using a controller output.
Each single mod of that modpack would need to be rewritten to work with my script. You can only rewrite them if you have access to the source code of the other script too.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Max10 » Tue Oct 22, 2019 12:00 pm

Scachi wrote:
Max10 wrote:I want to use this UNCHARTED The Lost Legacy Modpack

You can't simply merge them.
My script "USB-HID Gamepad 2 Keyboard+Mouse"is for playing games with a gamepad that are designed for mouse & keyboard only.
The modpack is for playing with controller also using a controller output.
Each single mod of that modpack would need to be rewritten to work with my script. You can only rewrite them if you have access to the source code of the other script too.

I understand, thanks, In general I need a script for this game and then after inserting these lines that you described above with a post, add them to this script and only then it will work, did I understand correctly?
User avatar
Max10
Captain
Captain
 
Posts: 506
Joined: Wed Apr 03, 2019 6:04 am

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Scachi » Tue Oct 22, 2019 12:36 pm

Max10 wrote:
Scachi wrote:
Max10 wrote:I want to use this UNCHARTED The Lost Legacy Modpack

You can't simply merge them.
My script "USB-HID Gamepad 2 Keyboard+Mouse"is for playing games with a gamepad that are designed for mouse & keyboard only.
The modpack is for playing with controller also using a controller output.
Each single mod of that modpack would need to be rewritten to work with my script. You can only rewrite them if you have access to the source code of the other script too.

I understand, thanks, In general I need a script for this game and then after inserting these lines that you described above with a post, add them to this script and only then it will work, did I understand correctly?

It is not as simple as inserting the functions I mentioned earlier. The script for the game need to be adjusted to use these functions correctly, to do all output via key presses and mouse presses/movements. After doing so putting the mod code into my script should work.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby Max10 » Tue Oct 22, 2019 1:18 pm

It’s a pity that this is difficult to implement, but thanks for the help
User avatar
Max10
Captain
Captain
 
Posts: 506
Joined: Wed Apr 03, 2019 6:04 am

Re: USB-HID Gamepad 2 Keyboard+Mouse (USB Multi Interface HI

Postby ShredWhitenBlue » Thu Feb 20, 2020 10:58 pm

This script is great, thanks for all your hard work! :smile0202: I'm actually using this to use a gamepad (xb1) at work for a specific application, and this allows me to do so without running software such as reWASD. The only thing that would make it better would be the ability to assign the left thumbstick to the scroll wheel of the mouse. Would this be possible?
User avatar
ShredWhitenBlue
Private
Private
 
Posts: 1
Joined: Thu Feb 20, 2020 10:52 pm

Next

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 98 guests