Switching between Virtual controller and USB port C output

GPC2 script programming for Titan Two. Code examples, questions, requests.

Switching between Virtual controller and USB port C output

Postby creedkiller » Thu Jun 02, 2022 2:51 pm

Context: I play the same game on 2 PS4s, PS4 A has the Titan2 hooked up directly to it, and PS4 B is controller from a virtual controller (Gtuner V) via playstation remote play.

Aim: With a specific action on the controller such as
Code: Select all
if(get_val(BUTTON_19) && get_val(BUTTON_20)) { if(event_active(BUTTON_2)) { "change_primary_output" }

I would like to switch between which PS4 is being controlled.

Solution 1: I know this can partially be done by using the "port" functions ie. port_status, port_disconnect, port_connect. But first proble is I dont know how to change the RUN state of the virtual controller from GPC code and however this would not be ideal since I would like when PS4 A is being controled, PS4 B should receive a combo that performs simple action over time to stop that PS from getting kicked due to inactivity. And in reverse when B is controlled A is receiving the same combo.

Any suggestions would be much appreciated. I would like to avoid having the buy a 2nd of everything ie. Titan 2, 2nd controller etc.
creedkiller
Lieutenant
Lieutenant
 
Posts: 293
Joined: Fri Mar 17, 2017 4:08 pm

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 115 guests