Holding a combination of buttons in MaxAim DI

Titan Two general support. Questions, firmware update, feature request.

Holding a combination of buttons in MaxAim DI

Postby Jbbrack03 » Wed Feb 13, 2019 10:06 pm

I'm really close to having a project working 100%. I'm using a Titan One to control an Original Xbox through the MaxAim DI plugin. I have all of the main buttons working. My last challenge is that going back to the Home screen on the OG Xbox requires you to hold down Right Trigger + Left Trigger + Back + Black (shoulder button). I'm not sure how to program the Home Button in MaxAim DI to hold down these buttons at the same time. I tried going into the "More" menu and adding those buttons, but it seems to press them in a sequence rather than at the same time. Is there a way to do what I'm trying to do?
User avatar
Jbbrack03
Corporal
Corporal
 
Posts: 4
Joined: Thu Jan 24, 2019 1:24 pm

Re: Holding a combination of buttons in MaxAim DI

Postby J2Kbr » Thu Feb 14, 2019 1:24 pm

You can use a GPC script for this purpose, example:
Code: Select all
main {
    if(get_val(XB360_XBOX)) {
        set_val(XB360_XBOX, 0);
        set_val(XB360_LB, 100);
        set_val(XB360_LT, 100);
        set_val(XB360_RB, 100);
        set_val(XB360_RT, 100);
    }
}

When using MaxAim DI the script should be loaded on the active MaxAim Layout, and not on the device's memory slot. For that, open the Script on Gtuner Pro code editor and run MaxAim DI via plugin menu. On MaxAim, click on Menu Layout -> Load GPC Script.
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: Holding a combination of buttons in MaxAim DI

Postby Jbbrack03 » Thu Feb 14, 2019 10:04 pm

J2Kbr wrote:You can use a GPC script for this purpose, example:
Code: Select all
main {
    if(get_val(XB360_XBOX)) {
        set_val(XB360_XBOX, 0);
        set_val(XB360_LB, 100);
        set_val(XB360_LT, 100);
        set_val(XB360_RB, 100);
        set_val(XB360_RT, 100);
    }
}

When using MaxAim DI the script should be loaded on the active MaxAim Layout, and not on the device's memory slot. For that, open the Script on Gtuner Pro code editor and run MaxAim DI via plugin menu. On MaxAim, click on Menu Layout -> Load GPC Script.


I really appreciate your response! I was thinking it might be something along these lines from the research that I did. I tried the script that you wrote and it did not work. I think that part of the problem is that I had to manually define the buttons in MaxAim DI as DirectInput. I believe that this changes the ID for each button, so it might affect the script that you suggested. Am I on the right track? If so, how to do I change the values in the script to match the DI identifiers? Here's what my layout looks like in MaxAim DI.

Image
User avatar
Jbbrack03
Corporal
Corporal
 
Posts: 4
Joined: Thu Jan 24, 2019 1:24 pm

Re: Holding a combination of buttons in MaxAim DI

Postby J2Kbr » Fri Feb 15, 2019 9:19 am

The script will use the inputs after the MaxAim DI mapping. Based on the image you posted the conditional to press RB, LB, RT and LT all together is triggered by pressing the Button 7 of your controller.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to Titan Two Device

Who is online

Users browsing this forum: No registered users and 98 guests