Programming the PS4 touchpad

GPC1 script programming for Titan One. Code examples, questions, requests.

Programming the PS4 touchpad

Postby TheBadger » Mon Mar 05, 2018 4:24 pm

Hi. I'm trying to automate pressing (clicking) the right side of the PS4 touchpad every 8 seconds or so. The game recognizes which side of the touchpad is being pressed. I tried this:

main{
set_val(PS4_TOUCH, 0);
set_val(PS4_TOUCHX, 90);
set_val(PS4_TOUCHY, 0);

combo_run(Turbo_1);
}

combo Turbo_1 {

set_val(PS4_TOUCH, 100);
wait (50);
set_val(PS4_TOUCH, 0);
wait(4000);
wait(4000);
}

... to no avail.

Any help would be appreciated.
User avatar
TheBadger
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Dec 09, 2015 8:00 am

Re: Programming the PS4 touchpad

Postby Prototype » Mon Mar 05, 2018 6:58 pm

Hi, did you tried the ps4_touchpad and ps4_set_touchpad functions?
https://www.consoletuner.com/kbase/misc ... 4_touchpad
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm

Re: Programming the PS4 touchpad

Postby TheBadger » Wed Mar 07, 2018 6:10 pm

They worked perfectly. Thank you.
User avatar
TheBadger
Sergeant
Sergeant
 
Posts: 7
Joined: Wed Dec 09, 2015 8:00 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 64 guests