USB-HID Rapid Fire (USB Multi Interface HID)

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

USB-HID Rapid Fire (USB Multi Interface HID)

Postby Scachi » Sat Sep 07, 2019 8:22 am

A rapid fire script for USB Multi Interface HID protocol.

For direct connection of mouse (+ optional keyboard) into Titan Two or via GTuner IV KMG Capture.
This script requires the T2 Output Protocol set to 'USB Multi Interface HID' !
The connected Output Port Device - pc, xim or console - will see the mouse/keyboard as mouse/keyboard.

Search for USB-HID Rapidfire in Gtuner IV "Online Resource" panel.

Configuration via Interactive Configuration.

Features
  • Rapid Fire Modes: 1=on mouse button hold (always runs rapid fire) or 2=on tap + press&hold (single hold will run normal fire then)
  • Selectable key to toggle rapid fire on/off
  • Optional rapid fire stated LED and T2 display feedback
    Configurable time to limit the feedback shown
    LED: Enabled=Green, Disabled=Red
    T2 display: n=normal fire, r=rapid fire
Last edited by Scachi on Sat Sep 07, 2019 10:20 pm, edited 2 times in total.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Gjin Yuko » Sat Sep 07, 2019 4:02 pm

Its not working for me Scachi, im usening KMG Capture Mode

PC--T2--XIM--XB1

Image

I also have to use this Script to be able to look around in-game


Code: Select all
init {
  mousemapping();
}
 
main {
  mouse_passthru();
  key_passthru();
}
 
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Scachi » Sat Sep 07, 2019 4:47 pm

I have no idea why this isn't working for you. I own no XIm, I can't help with that.

I could only create and test this script with this setups:
A: Mouse in Input-A, Keyboard in Input-B, Output into PC : works fine
B: Mouse in Input-A, keyboard via GTuner KMG Capture (only checked capture keyboard), , Output into PC: works fine

I can't test it with using mouse via KMG Capture as I don't think it will work. It is creating a loop in this case then, trapping the mouse input in GTuner..can't see movement on PC this way.

Perhaps J2kbr or someone else knowing the T2,scrpting and Xim can test this script with your setup or knows why it itsn't working with the xim.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Scachi » Sat Sep 07, 2019 4:56 pm

Is this still working for you ?

Code: Select all
 
init {
  port_connect(PORT_USB_C, PROTOCOL_HID);
  mousemapping();
}
 
main {
  key_passthru();
  mouse_passthru();
}
 


and is this still working ?
Code: Select all
 
init {
  port_connect(PORT_USB_C, PROTOCOL_HID);
  keymapping();
  mousemapping();
}
 
main {
  key_passthru();
  mouse_passthru();
}
 
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Scachi » Sat Sep 07, 2019 5:12 pm

I can also run my script using GTuner IV KMG Capture, capturing Mouse & Keyboard, with T2:output to my TV USB in port and the mouse movement is recognized correctly by my TV. Mouse is moving fine.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Gjin Yuko » Sat Sep 07, 2019 5:33 pm

No Scachi it doesnt idk what it is.. I tried it it works for a Second (USB-HID_Rapidfire) and then it doesent..

The Script you posted above works fine tho
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Scachi » Sat Sep 07, 2019 5:40 pm

I am running the current beta firmware version on my T2. viewtopic.php?f=2&t=13510
I tried downgrading it to stable again to check if the script stops working then but I have an issue with applying the downgrade.
I will try again when I have solved this downgrade issue.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Gjin Yuko » Sat Sep 07, 2019 5:49 pm

ok found the solution i had to delete this from youre Script

port_connect(PORT_USB_C, PROTOCOL_HID);

One more Question What would be the fastest Rapidfire script comes with 100/100+

Thanks Scachi for ur help appreciate that
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Scachi » Sat Sep 07, 2019 5:56 pm

Gjin Yuko wrote:ok found the solution i had to delete this from youre Script

port_connect(PORT_USB_C, PROTOCOL_HID);

One more Question What would be the fastest Rapidfire script comes with 100/100+

Thanks Scachi for ur help appreciate that

:smile0517: Nice that you found a solution. Shouldn'T be required to remove this. Could be a problem of the firmware or I have to check it in the script and change it to HID only when it is not already using that protocol.

You can change the rapid fire timings via the Interactive Configuration. The smallest(fastest) allowed value is 10 for each.
Change it and hit "save and run" for the changes to apply or press okay and reload the script manually.
You have to test which speed it working best for your game and weapon in use.
There is no general best or fasted rapid fire.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: USB-HID Rapid Fire (USB Multi Interface HID)

Postby Gjin Yuko » Sat Sep 07, 2019 6:06 pm

Thanks Scachi
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Next

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 145 guests