[GUIDE] Defining/Creating Triggering Actions Gestures easier

215 posts
Thanks Meter: 90

By janreiviardo, Senior Member on 30th August 2012, 04:49 PM
Hi folks!

This thread will guide you on how you can make your own gestures for triggering actions of your likes. A lot simpler and a lot easier.

Triggering actions has been made possible thanks to:
Tungstwenty - for his "[Ref][Kernel]Triggering actions with touch gestures"
gokhanmoral - for his Amazing Siyahkernel

So let's proceed to the guide..

As we know our screen resolution is 800x480. So if we try to divide the screen into 160x160 boxes this is how it will look like:

Each box I have labeled it with its corresponding minimum and maximum x and y coordinates.

For example we want to create a gesture that is letter S.

Then we would like to define the coordinates of this boxes.

Referring to our 1st picture with the corresponding minimum and maximum x and y coordinates, each boxes according to no. will have this values:
1= 320|480,0|160
2=0|160,0|160
3=0|160,320|480
4=320|480,320|480
5=320|480,640|800
6=0|160,640|800

So if we would want to create the code for our gesture 1 it would look like:
Code:
# Gesture 1 - S
1:1:(320|480,0|160)
1:1:(0|160,0|160)
1:1:(0|160,320|480)
1:1:(320|480,320|480)
1:1:(320|480,640|800)
1:1:(0|160,640|800)
I hope you guys like it! I was so impressed with this feature that I was bored and tried to put a little effort on trying to make the gesture creation easier.

Again, this is just a guide on how you could make gestures easier. If you want to know the full details of what this guide is about, please go to tungstwenty's thread. Thank you!

And if you appreciate my help, just press the thank you button.
30th August 2012, 05:52 PM |#2
Senior Member
Thanks Meter: 4,550

Donate to Me
More
Thanks for a great visual guide on how to do it
31st August 2012, 12:31 AM |#3
Account currently disabled
Thanks Meter: 8

More
Wonderful ! Thank you
31st August 2012, 10:48 AM |#4
Senior Member
Thanks Meter: 45

More
HI,
can you provide a guide for gs3??

thanks
31st August 2012, 02:58 PM |#5
OP Senior Member
Sta. Maria
Thanks Meter: 90

Donate to Me
More
Quote:
Originally Posted by gaetanolip

HI,
can you provide a guide for gs3??

thanks

ok, I will when I got vacant time.
31st August 2012, 09:57 PM |#6
Senior Member
Pilar
Thanks Meter: 416

More
INDEXED in [INDEX of GUIDES/TUTORIALS] SGS2 GT-I9100 [31/08/2012]
2nd September 2012, 01:54 PM |#7
OP Senior Member
Sta. Maria
Thanks Meter: 90

Donate to Me
More
Quote:
Originally Posted by pelpa87

INDEXED in [INDEX of GUIDES/TUTORIALS] SGS2 GT-I9100 [31/08/2012]