I have issue with mapping keyboard mouse

Gtuner Pro general support. Operation, questions, updates, feature request.

I have issue with mapping keyboard mouse

Postby Kasey00 » Fri Jun 05, 2020 6:16 am

Everything is working fine but I cannot change the setup in-game so it might be on Gtuner. I have Square mapped to key 4 and circle mapped to key 6. Both these actions in-game requires me 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 the right analog stick.

Is this possible with a script?

Thanks in advance.
User avatar
Kasey00
Private
Private
 
Posts: 1
Joined: Thu Jun 04, 2020 7:18 am

Re: I have issue with mapping keyboard mouse

Postby DontAtMe » Fri Jun 05, 2020 2:00 pm

Kasey00 wrote: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 the right analog stick.

Code: Select all
main {
  if(get_val(PS4_SQUARE) || get_val(PS4_CIRCLE)) {
    set_val(PS4_LX, get_val(PS4_RX));
    set_val(PS4_LY, get_val(PS4_RY));
  }
}
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am


Return to Gtuner Pro Support

Who is online

Users browsing this forum: No registered users and 33 guests