Mapping keyboard Mouse issue

Gtuner Plugins support. MaxAim, MaxRemapper, Combo Magick, Game Rec.

Mapping keyboard Mouse issue

Postby Rogueraven » Sat Jul 15, 2017 5:49 pm

PS4 to Mouse & Keyboard setup

I got everything working fine apart from one thing and I cannot change the setup in game so it got to be on Gtuner.

I have Square mapped to key 4 and circle mapped to key 6. Both these actions in game require you to hold the button in and select an option with left analog stick. So basically what I need is when I press and hold 4 or 6 it switches mouse movement from right analog stick to left analog stick when I release key it automatically goes back to right analog stick.

I hope that makes sense, is this possible with a script?
User avatar
Rogueraven
Private
Private
 
Posts: 1
Joined: Sat Jul 15, 2017 1:37 pm

Re: Mapping keyboard Mouse issue

Postby J2Kbr » Mon Jul 17, 2017 5:21 pm

Welcome to our community. :)
Rogueraven wrote:So basically what I need is when I press and hold 4 or 6 it switches mouse movement from right analog stick to left analog stick when I release key it automatically goes back to right analog stick.

this small script should do what you need: :joia: :joia:
Code: Select all
main {
    if(get_val(PS4_SQUARE) || get_val(PS4_CIRCLE)) {
        swap(PS4_RX, PS4_LX);
        swap(PS4_RY, PS4_LY);
    }
}
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 Gtuner Plugins Support

Who is online

Users browsing this forum: No registered users and 79 guests

cron