Need help in binding rapid fire and anti Recoil on keyboard

GPC2 script programming for Titan Two. Code examples, questions, requests.

Need help in binding rapid fire and anti Recoil on keyboard

Postby Ximmer 17 » Mon Jun 29, 2020 7:01 pm

Hi ! I am a beginner here , i use xim along with T2. I only use rapid fire along with anti recoil. Is there any way i could possibly bind these two on two different keybinds on keyboard ? For example page UP for rapid fire .
In games like destiny where u change weapon on the go it would be a lot easier to have a seperate bind on keyboard , so whenever you need it , just toggle it ON else it remains OFF.
Any HELP WOULD BE REALLY GREAT , as i just so new to this .
Thanks in advance
User avatar
Ximmer 17
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Wed Feb 26, 2020 10:11 am

Re: Need help in binding rapid fire and anti Recoil on keybo

Postby Mad » Mon Jun 29, 2020 8:20 pm

Usually I'd recommend using Dont@Me's key_events header, but since you are only planning on using two keys we can use key_status and a bool.

You will need the keyboard plugged into the T2 and use an input translator for the buttons/keys.
Code: Select all
#include <keyboard.gph>
 
bool key_press1;
bool key_press2;
 
main {
    if(key_status(KEY_PAGEUP)) key_press1 = 1;
    else if(key_press1) {
        key_press1 = 0;
        // do stuff
    }
 
    if(key_status(KEY_PAGEDOWN)) key_press2 = 1;
    else if(key_press2) {
        key_press2 = 0;
        // do stuff
    }
}

Otherwise you can create dual binds within the xim config and create a script.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Need help in binding rapid fire and anti Recoil on keybo

Postby antithesis » Tue Jun 30, 2020 2:48 am

YOu can also bind mod toggles to key combos, e.g pressing L2 + D-pad Up on the XIM controller or m/kb to toggle rapid-fire On/Off.

The above method of attaching a kb direct to T2 works well, but you can lose access to XIM-specific things like AUX subconfigs, Turn Assist, Simulate Analog Behaviour, Push To Talk, profile swapping etc. For me, the cost of moving the kb to T2 outweighs the benefit.

Instead, you can attach a separate kb or keypad to Titan Two for toggles &/or macros while leaving the m&kb on the XIM. I use a Cooler Master ControlPad for this sort of thing.

USB foot pedals are another option. I used to do that for RF & AR toggles but I use them on XIM instead for things like Turn Assist, Sniper Mode, AUX subconfig triggers etc.
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: Need help in binding rapid fire and anti Recoil on keybo

Postby Ximmer 17 » Thu Jul 09, 2020 6:53 pm

Hi ! Sorry for the late reply . Was caught up with some work .
So i tried using keycombos to turn rapid fire on and off , apparently its not working
I tried this by plugging kb both in titan and to xim as well but results are the same . Btw i have the vibration turned on in the settings.
User avatar
Ximmer 17
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Wed Feb 26, 2020 10:11 am

Re: Need help in binding rapid fire and anti Recoil on keybo

Postby Mad » Thu Jul 09, 2020 8:44 pm

Post the script you tried so we can see why it is not working for you.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Need help in binding rapid fire and anti Recoil on keybo

Postby Ximmer 17 » Fri Jul 10, 2020 3:52 am

Hi ! It not the case with just one gamepack , i am currently using apex legends gamepack by J2Kbr
User avatar
Ximmer 17
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Wed Feb 26, 2020 10:11 am

Re: Need help in binding rapid fire and anti Recoil on keybo

Postby Ximmer 17 » Sat Jul 11, 2020 5:31 pm

Hello there again , ISSUE IS FIXED .
I reverted back the output and input to default. Seems to fix the the issue completely.
Thanks for the help
User avatar
Ximmer 17
Master Sergeant
Master Sergeant
 
Posts: 30
Joined: Wed Feb 26, 2020 10:11 am

Re: Need help in binding rapid fire and anti Recoil on keybo

Postby Mad » Sun Jul 12, 2020 10:42 am

Ximmer 17 wrote:Hello there again , ISSUE IS FIXED .
I reverted back the output and input to default. Seems to fix the the issue completely.
Thanks for the help

Awesome, glad you got it sorted. :joia: :joia:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 91 guests