fifa 19 - left stick direction ?

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

fifa 19 - left stick direction ?

Postby maxbren » Thu Jul 04, 2019 7:37 pm

hey forum :)
if anyone can help me with left stick direction script.. i tried an script in the forum

viewtopic.php?f=6&t=10365
this one

it doesnt work exactly.. maybe because it for titan one..
but if someone can build a good one ill be happy
User avatar
maxbren
Sergeant First Class
Sergeant First Class
 
Posts: 21
Joined: Wed Jun 05, 2019 9:28 pm

Re: fifa 19 - left stick direction ?

Postby Scachi » Fri Jul 05, 2019 8:57 am

The script you have linked is useful for mouse/keybopard player only.
This script works like this:
When you move the mouse into a direction and press the key the script will continue move your player into the direction of the mouse move without you needing to keep the mouse moving until you let go of the key.

This script isn't useful when playing with a gamepad.


Are you playing with a gamepad or mouse+keyboard ?
When you are playing with mouse+keyboard here it is converted to the T2:
Code: Select all
  
#pragma METAINFO("KeyMouse_KeepMoving", 1, 0, "")
 
#include <keyboard.gph>
#include <ps4.gph>
 
/* Notes: !!! This script is useful for mouse+keyboard only. !!!
 
For this script to work you need a keyboard connect to your Titan Two.
The timing is important for this to work:
        Press the key 'KEY_LEFTCONTROL' right after you started your mouse movement but before you stop moving the mouse.
        Hold down the key as long as you want the script to continue to keep the direction for the stick.
*/

 
#define KEY_TO_USE        KEY_LEFTCONTROL // the key to press for keep moving in mouse direction
#define STICK_X           PS4_LX          // left stick x movement
#define STICK_Y           PS4_LY          // left stick y movement
 
 
bool  key_active;
fix32 x, y;
 
main {
    if(key_status(KEY_TO_USE)) {
        if(!key_active) {
                        key_active=TRUE;
            x = get_val(PS4_LX);
            y = get_val(PS4_LY);
        }
        set_val(PS4_LX, x);
        set_val(PS4_LY, y);
    } else {
            key_active=FALSE;
        }
}
 
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: fifa 19 - left stick direction ?

Postby maxbren » Fri Jul 05, 2019 11:38 am

i play on pc with xbox one controller you can convert please?
User avatar
maxbren
Sergeant First Class
Sergeant First Class
 
Posts: 21
Joined: Wed Jun 05, 2019 9:28 pm

Re: fifa 19 - left stick direction ?

Postby Scachi » Fri Jul 05, 2019 11:49 am

dorhayak wrote:i play on pc with xbox one controller you can convert please?

This script isn't useful when playing with a xbox one controller.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany


Return to GPC2 Script Programming

Who is online

Users browsing this forum: midg3t2 and 139 guests