Touchpad Framework - Swipe up, down, left, right for combos!

Documentation, usage tips and configuration guides for Titan Two scripts and bytecodes published by the community users.

Touchpad Framework - Swipe up, down, left, right for combos!

Postby Loui2 » Fri Jun 01, 2018 5:09 pm

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
User avatar
Loui2
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Sun Oct 15, 2017 11:41 pm

Re: Touchpad Framework - Swipe up, down, left, right for com

Postby Foffa » Sat Mar 23, 2019 1:41 pm

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.
User avatar
Foffa
Staff Sergeant
Staff Sergeant
 
Posts: 12
Joined: Wed Feb 13, 2019 11:07 am

Re: Touchpad Framework - Swipe up, down, left, right for com

Postby Prototype » Sun Mar 24, 2019 11:02 am

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! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm

Re: Touchpad Framework - Swipe up, down, left, right for com

Postby Prototype » Fri Mar 29, 2019 10:01 am

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! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3252
Joined: Sun Dec 16, 2012 1:43 pm


Return to User's Script Documentation

Who is online

Users browsing this forum: No registered users and 207 guests

cron