FORUMS
Remove All Ads from XDA

[GUIDE] Defining/Creating Triggering Actions Gestures easier

215 posts
Thanks Meter: 90
 
By janreiviardo, Senior Member on 30th August 2012, 04:49 PM
Post Reply Email Thread
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.
The Following 16 Users Say Thank You to janreiviardo For This Useful Post: [ View ] Gift janreiviardo Ad-Free
 
 
30th August 2012, 05:52 PM |#2  
Tungstwenty's Avatar
Senior Member
Thanks Meter: 4,550
 
Donate to Me
More
Thumbs up
Thanks for a great visual guide on how to do it
31st August 2012, 12:31 AM |#3  
Member
Thanks Meter: 8
 
More
Wonderful ! Thank you
31st August 2012, 10:48 AM |#4  
Senior Member
Thanks Meter: 41
 
More
HI,
can you provide a guide for gs3??

thanks
31st August 2012, 02:58 PM |#5  
janreiviardo's Avatar
OP Senior Member
Flag 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.
The Following User Says Thank You to janreiviardo For This Useful Post: [ View ] Gift janreiviardo Ad-Free
31st August 2012, 09:57 PM |#6  
pelpa87's Avatar
Senior Member
Flag Pilar
Thanks Meter: 416
 
More
INDEXED in [INDEX of GUIDES/TUTORIALS] SGS2 GT-I9100 [31/08/2012]
Any Doubt, please don't hessitate to ask.
The Following User Says Thank You to pelpa87 For This Useful Post: [ View ] Gift pelpa87 Ad-Free
2nd September 2012, 01:54 PM |#7  
janreiviardo's Avatar
OP Senior Member
Flag 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]
Any Doubt, please don't hessitate to ask.

thanks
Post Reply Subscribe to Thread

Tags
siyah guide gesture triggering action

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes