Touchpad Framework - Swipe up, down, left, right for combos!
4 posts
• Page 1 of 1
Touchpad Framework - Swipe up, down, left, right for combos!
Touchpad Framework
Description: Allows you to run combos by swiping up, down, left, and right.
NOTE: This is meant to be used with your own scripts! Use #include "Touchpad-Framework.gph"
Instructions:
1. Put Touchpad-Framework.gph in the same folder as your script.
2. Write #include "Touchpad-Framework.gph" on the top of your script.
3. Now you can use the Touchpad Framework functions in your own script!.
4. Optional(RECOMMENDED) -
Add block_touch_input() to the bottom of your script main.
This prevents the game you're playing from getting touch input.
5. Optional -
Enable output to output panel by adding tfw_verbose_output(TRUE)
Functions:
NOTE: pre = what parameters the function needs, post = what the function returns
block_touch_input()
----------------------
Blocks all touch output to the game.
*pre: no parameters
*post: does not return
is_swiping_up()
----------------------
Checks if user is swiping up.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
is_swiping_down()
----------------------
Checks if user is swiping down.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
is_swiping_left()
----------------------
Checks if user is swiping left.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
is_swiping_right()
----------------------
Checks if user is swiping right.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
tfw_verbose_output()
----------------------
Allows framework to print information to the output panel.
*pre: bool parameter (TRUE/FALSE)
*post: does not return
Description: Allows you to run combos by swiping up, down, left, and right.
NOTE: This is meant to be used with your own scripts! Use #include "Touchpad-Framework.gph"
Instructions:
1. Put Touchpad-Framework.gph in the same folder as your script.
2. Write #include "Touchpad-Framework.gph" on the top of your script.
3. Now you can use the Touchpad Framework functions in your own script!.
4. Optional(RECOMMENDED) -
Add block_touch_input() to the bottom of your script main.
This prevents the game you're playing from getting touch input.
5. Optional -
Enable output to output panel by adding tfw_verbose_output(TRUE)
Functions:
NOTE: pre = what parameters the function needs, post = what the function returns
block_touch_input()
----------------------
Blocks all touch output to the game.
*pre: no parameters
*post: does not return
is_swiping_up()
----------------------
Checks if user is swiping up.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
is_swiping_down()
----------------------
Checks if user is swiping down.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
is_swiping_left()
----------------------
Checks if user is swiping left.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
is_swiping_right()
----------------------
Checks if user is swiping right.
*pre: no parameters
*post: returns boolean (TRUE/FALSE)
tfw_verbose_output()
----------------------
Allows framework to print information to the output panel.
*pre: bool parameter (TRUE/FALSE)
*post: does not return
-
Loui2 - Sergeant First Class
- Posts: 24
- Joined: Sun Oct 15, 2017 11:41 pm
Re: Touchpad Framework - Swipe up, down, left, right for com
Hi,
I want to use this header in my script, but I'm able to download only the example. There is no way to download the header itself. Please separate the two files.
I want to use this header in my script, but I'm able to download only the example. There is no way to download the header itself. Please separate the two files.
-
Foffa - Staff Sergeant
- Posts: 12
- Joined: Wed Feb 13, 2019 11:07 am
Re: Touchpad Framework - Swipe up, down, left, right for com
Same for me when i download the example but i already have the Touchpad Framework gph in the include folder. Did you looked in Gtuner IV/include folder?
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
Re: Touchpad Framework - Swipe up, down, left, right for com
Hi, i found the gph in documents.
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3252
- Joined: Sun Dec 16, 2012 1:43 pm
4 posts
• Page 1 of 1
Return to User's Script Documentation
Who is online
Users browsing this forum: No registered users and 150 guests