Foot Switch Key_1=Rapidfire On/Off

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

Foot Switch Key_1=Rapidfire On/Off

Postby Vendetta » Mon Apr 10, 2017 8:01 pm

This Foot Switch, the Scythe USB-1FS-2 USB Foot Switch Version 2 - Single

Available on Amazon; http://a.co/a1UPzwr has been added to the firmware update:

Titan Two Firmware 0.84B. Which became available on March 13, 2017.

I can verify that the foot switch is of good quality and is metal.

J2Kbr was gracious enough to obtain the foot switch and write the firmware update to include this model.

So what does this mean?

We now have a working Foot Switch that can be plugged into Input B while using Input A as our main input (Controller), thus off-loading a command to your foot.

When you click the foot switch the switch outputs a "1".

You use this webpage; https://www.consoletuner.com/wiki/index.php?id=t2:keyboard_gph

And determine that a output of "1" = #define KEY_1 0x1E // 1 or !

thus you use KEY_1 in the code.

You can use this code to toggle anything you wish On and Off.
    Playstation PS4, Astro A50 Gen 3, Elgato Game Capture HD60 S
    2x Benq 27” Gaming Monitors, Netduma R1 Gaming Router
    Titan One/Two Controller Input Device, Battle Beaver PS4 Controller, SCUF Infinity4PS Controller
User avatar
Vendetta
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 226
Joined: Fri Jul 31, 2015 8:40 pm

Re: Foot Switch Key_1=Rapidfire On/Off

Postby J2Kbr » Sun Apr 16, 2017 3:06 pm

Vendetta wrote:J2Kbr was gracious enough to obtain the foot switch

You are being very generous here!! Thank you for sending me the footswitch, without it it would be much harder to add support for it.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: Foot Switch Key_1=Rapidfire On/Off

Postby combo Destroy{ » Sun May 14, 2017 4:06 am

Hey,

Can this footswtich be used for normal controller functions? Eg use it as "x" for PS4 while also running scripts on the controller?

Thanks.
User avatar
combo Destroy{
First Sergeant
First Sergeant
 
Posts: 49
Joined: Sun May 14, 2017 4:04 am

Re: Foot Switch Key_1=Rapidfire On/Off

Postby Vendetta » Sun May 14, 2017 1:11 pm

Yes it can. Here I'm using the Foot Switch to activate the Jump button (BUTTON_16) (X Button on PS4 controller) in a Double Jump Combo.

Look at the Keyboard.gpc document https://www.consoletuner.com/wiki/index.php?id=t2:keyboard_gph you'll see that #define KEY_1 equals (0x1E) or (1 or !) so for this particular foot switch which outputs a "1" you'll always use KEY_1. In the combo's you can select any controller button you want.

You could also use the feature "Input Translator" in Gtuner to do the same thing, remapping the (1 or !) to any button you like and use with existing scripts. (see image). This would create a .Git file which you drag and drop into a Titan Two slot which already has a GPC script. The Example in the image below would remap any BUTTON_16 calls to the Foot Switch (1 or !).

Code: Select all
#pragma METAINFO("Dual Foot Switch", 1, 0, "Vendetta")
 
#include <ps4.gph>
#include <keyboard.gph>
 
main {
 
    if(key_status(KEY_1)) {  //if the foot switch is activated run Double jump
        combo_run(DoubleJump);
    }
}
 
// COMBOS ---------------------------------------------------------------------------------------------------------------
 
combo DoubleJump {  //double jump
    set_val(BUTTON_16, 100);
    wait(100);
    set_val(BUTTON_16, 0);
    wait(100);
    set_val(BUTTON_16, 100);
    wait(100);
}


Image
    Playstation PS4, Astro A50 Gen 3, Elgato Game Capture HD60 S
    2x Benq 27” Gaming Monitors, Netduma R1 Gaming Router
    Titan One/Two Controller Input Device, Battle Beaver PS4 Controller, SCUF Infinity4PS Controller
User avatar
Vendetta
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 226
Joined: Fri Jul 31, 2015 8:40 pm

Re: Foot Switch Key_1=Rapidfire On/Off

Postby combo Destroy{ » Sun May 14, 2017 11:54 pm

Thank you for this informative reply. I may purchase a foot switch now..
User avatar
combo Destroy{
First Sergeant
First Sergeant
 
Posts: 49
Joined: Sun May 14, 2017 4:04 am

Re: Foot Switch Key_1=Rapidfire On/Off

Postby Vendetta » Sun May 14, 2017 11:58 pm

No problem, this is the one that we know works right now; Available on Amazon; http://a.co/a1UPzwr

Other models may work but the developer made sure this one did in a firmware update.
    Playstation PS4, Astro A50 Gen 3, Elgato Game Capture HD60 S
    2x Benq 27” Gaming Monitors, Netduma R1 Gaming Router
    Titan One/Two Controller Input Device, Battle Beaver PS4 Controller, SCUF Infinity4PS Controller
User avatar
Vendetta
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 226
Joined: Fri Jul 31, 2015 8:40 pm

Re: Foot Switch Key_1=Rapidfire On/Off

Postby antithesis » Mon May 15, 2017 12:48 am

I use a Stinky Board (http://www.stinkyboard.com/), it's like a d-pad for your foot. On console it can be used for 4 inputs, on PC it's up to 16.

As long as the bindings in the Stinky Board app aren't mapped to modifier keys (Alt, Ctrl & Shift, which is intended behaviour), it works out of the box with the T2.

Stinky Board is a big and solid device and it's really good at what it does, but it's pretty noisy.
Last edited by antithesis on Mon May 15, 2017 5:28 am, edited 1 time in total.
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Re: Foot Switch Key_1=Rapidfire On/Off

Postby combo Destroy{ » Mon May 15, 2017 2:06 am

Thanks guys.

I just bought the three swtich scythe. Saw the stinky board after but it also looks really cool.
User avatar
combo Destroy{
First Sergeant
First Sergeant
 
Posts: 49
Joined: Sun May 14, 2017 4:04 am

Re: Foot Switch Key_1=Rapidfire On/Off

Postby combo Destroy{ » Thu May 18, 2017 3:15 am

Also in reference to the scythe. Is it durable enough to use as a jump action in cod without wearing? And how loud is it? Thanks.
User avatar
combo Destroy{
First Sergeant
First Sergeant
 
Posts: 49
Joined: Sun May 14, 2017 4:04 am

Re: Foot Switch Key_1=Rapidfire On/Off

Postby Vendetta » Thu May 18, 2017 11:49 am

Combo_run Destroy{} wrote:Is it durable enough to use as a jump action in cod without wearing?


Yes I think so. I read some where that the Foot switch is rated for 100,000 clicks. It's metal and sturdy.

It does make a loud click, so if you're player with other gamers they might hear the clicks thru your mic. However, I just pass it off as recording game play on my computer. The Elgato Game Capture unit uses this same foot switch for that very purpose.

See here: https://gaming.help.elgato.com/customer ... es/1020272

I don't play COD, but here's some code to get you started with the jump action.

Code: Select all
#pragma METAINFO("Jump Foot Switch", 1, 0, "Author")
 
#include <ps4.gph>
#include <keyboard.gph>
 
main {
 
  if(key_status(KEY_1)) {  //activate foot switch for Jump
        combo_run(Jump);
    }
}
 
// COMBOS --------------------------------------------------
 
combo Jump { 
    set_val(BUTTON_16, 100); // Change "BUTTON_16" to COD JUMP Button from COD Button Layout
    wait(100);
    set_val(BUTTON_16, 0)// Change "BUTTON_16" to COD JUMP Button from COD Button Layout
    wait(100);
}
    Playstation PS4, Astro A50 Gen 3, Elgato Game Capture HD60 S
    2x Benq 27” Gaming Monitors, Netduma R1 Gaming Router
    Titan One/Two Controller Input Device, Battle Beaver PS4 Controller, SCUF Infinity4PS Controller
User avatar
Vendetta
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 226
Joined: Fri Jul 31, 2015 8:40 pm

Next

Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 79 guests