PS4 Touchpad script for Colonelwheel

What it does is 1) a left half touchpad touch activates L3 2) a right half touchpad touch activates R3 3) a left side PRESS activates Share 4) a right side PRESS activates Options 5) L1+PS button activate and deactivate the script 6) R1+PS button activate and L2/R2 activates by gentle pressure. Please enjoy -Token
Version1.10
Authortoken
Publish DateSun, 6 Apr 2014 - 22:43
Last UpdateTue, 8 Apr 2014 - 23:46
Downloads80
RATE


1

0

Release Notes: New features added.
Code: Select all
int y = FALSE;
int c = FALSE;
main {
if(get_val(28) < 0 && ps4_touchpad(PS4T_P1) && y) {set_val(8, 100);}
if(get_val(28) > 0 && ps4_touchpad(PS4T_P1) && y) {set_val(5, 100);}
if(get_val(28) < 0 && get_val(27) && y) {set_val(1, 100);}
if(get_val(28) > 0 && get_val(27) && y) {set_val(2, 100);}
if(event_press(0) && get_val(6)) y = !y;
if(event_press(0) && get_val(3)) c = !c;
if(get_val(4) > 10 && c) {set_val(4, 100);}
if(get_val(7) > 10 && c) {set_val(7, 100);}
}