
13th July 2011, 02:29 AM
|
Member - OP
Thanks Meter 0
Posts: 31
Join Date: Feb 2011
|
[Q] Improving x8gesture
I am actually hoping to speak with doixah directly, but I'm a newbie so I can't post in that thread, but I do hope doixah reconsiders his position in this regard, the thought I have about improving the x8 gesture is focused on improving the fake dual touch capability of the phone, I was wondering if doixah can do this:
assuming that we only have one sensor for the finger, but every time we press a specific area at a one by one manner the phone instantly recognizes it right? so why not place a loop in every instance where dual touch is required? the thought is to recognize both fingers in a threaded way, this is because no two fingers can be at the same position at the same time so every time we switch from one finger to another the coordinate is passed as if there are two fingers...
since both ends are always recognized in the dual touch modes why not just swap and retain each coordinate that is not exactly or partially the same with each other?
a pseudocode for the idea that i want to impart
coor = finger1.coor
coor2 = finger1.coor
while screen is touched{
coor = finger1.coor (1st end)
delay(1ms);
if(finger1.coor(2nd end)!=finger1.coor(1st end))
coor2 = finger1.coor(2nd end)
}
I am assuming that for every delay a new coordinate is scanned so coor and coor2 is bound to acquire different coordinates which will be fed to the android os thus a dual touch can be simulated by a single touch, hopefully doixah notices this or someone is kind enough to forward the idea to doixah
|

13th July 2011, 09:02 AM
|
Senior Member
Thanks Meter 68
Posts: 930
Join Date: Mar 2011
Location: Enniscorthy (Ireland,Wexford)
|
its doixanh .
Sent from my X8 using Tapatalk
HTC Desire + RSK Xperience 4.2.2
XPERIA x8 + Unlocked Bootloader !
|

15th July 2011, 02:17 AM
(Last edited by Primark; 15th July 2011 at 02:26 AM.)
Reason: mispelled doixanh again
|
Member - OP
Thanks Meter 0
Posts: 31
Join Date: Feb 2011
|
sorry, don't mean to disrespect, hello, please somebody help me out with doixahn, I do believe this is the safest way to simulate dual touch with one fingerprint, it just needs the proper arguments... hellllllppppp
sorry... help doixanh...
|

15th July 2011, 10:55 AM
|
Senior Member
Thanks Meter 25
Posts: 100
Join Date: Jul 2011
|
Hi, I don't mean to be disrespectful, but if you wanted DX's help, you should have written him a PM, but DX himself stated, that he doesn't need/want to improve DT on x8, therefore he is probably more interested in froyobread development, than in DT improving.
As for the idea, I don't think, this would be useful. Gestures for zoom work right, only think, that could be better is IMHO game mode, so even if the DT simulation worked, it wouldn't be very effective and it would cost a lot of performance, so the games would be unplayable with it. Also I don't think that it could ever be done this way, because even if you swapped the coordinates you wouldn't get two fingers, you would have one spot pressed + one finger movement at the time, which would be very ineffectively written code for just a single touch.
I don't say, I'm right, it's just my opinion, if someone managed to do this, I would be happy as hell.
|

15th July 2011, 11:02 AM
|
Senior Member
Thanks Meter 635
Posts: 1,901
Join Date: Nov 2010
Location: Mars
DONATE TO ME
|
Quote:
Originally Posted by Mr. Hat
Hi, I don't mean to be disrespectful, but if you wanted DX's help, you should have written him a PM, but DX himself stated, that he doesn't need/want to improve DT on x8, therefore he is probably more interested in froyobread development, than in DT improving.
As for the idea, I don't think, this would be useful. Gestures for zoom work right, only think, that could be better is IMHO game mode, so even if the DT simulation worked, it wouldn't be very effective and it would cost a lot of performance, so the games would be unplayable with it. Also I don't think that it could ever be done this way, because even if you swapped the coordinates you wouldn't get two fingers, you would have one spot pressed + one finger movement at the time, which would be very ineffectively written code for just a single touch.
I don't say, I'm right, it's just my opinion, if someone managed to do this, I would be happy as hell.
|
Yes but this fingers would swith so this will stop one finger on 1 ms and allow to move other finger for 1 ms then againg and again and then this will look like real dual-touch.
|

15th July 2011, 11:13 AM
|
Senior Member
Thanks Meter 25
Posts: 100
Join Date: Jul 2011
|
Yes i get that, but how would you know, which one is moving at the time, correct me if I'm wrong, but when there are already two spots pressed and the coordinates are already swapped, you can't move the first finger, you would have to rise one finger and the press the screen again, because there is only one touch recognized. To make it work this way, we would need DT digitizer, this is not possible to make on single touch screen. The 1ms switching is useless, you can't recognize if the moving finger is the first or the second one, you would only knew, that one of them is moving.
|

19th July 2011, 01:17 AM
(Last edited by Primark; 19th July 2011 at 01:24 AM.)
Reason: the illustrations are not rendering properly
|
Member - OP
Thanks Meter 0
Posts: 31
Join Date: Feb 2011
|
well for example in dual touch games...
we normally have two sticks placed at ideal positions right? so suppose this is the bottom part of your screen and your controls are placed at the bottom like in figure 1 in my attached files
if we swap coordinates between the two points and detect the presence of the finger within a prescribed range, imagine the asterisks as finger 1 and finger 2 and the 0 as their ranges, ideally even if we only have a single touch since we have a prescribed dimension where a touch must be made, two distinct coordinates can always be extracted from a single touch screen within an interval, another illusion would be our hand ideally touching a side of the screen, this is for none game mode, though i doubt that there is a need to improve it,
imagine this scenario; figure 2 in my attached files
since ideally we are holding the phone at two different places at a time, imagine both our thumbs holding a position near each asterisks, we can move it around within the rectangular boundaries and swap coordinates relative to the asterisk, again in every interval, a different coordinate must be swapped, so in order to specify which is which we just have to set boundaries and relative positions to identify that this finger is holding coordinate 1 and the other is holding coordinate 2.
the only real limitation i see is one a finger breaches the region specified for dual touch, other than that I do believe that this kind of illusion is more than enough for most applications
|

19th July 2011, 02:22 AM
|
Member - OP
Thanks Meter 0
Posts: 31
Join Date: Feb 2011
|
well this is a pseudocode for my figure 1 illusion, by default we are going to include ranges, i will represent it with arrays
0 1 2 3 4 6 7 8 9
10 11 12 13 14 15 16 17 18
19 20 21 22 23 24 25 26 27
suppose our boundaries for finger 1 are 0 1 2 10 12 19 20 21 and the center is
11, then for finger 2 the boundaries are 7 8 9 16 18 25 26 27 and the center is 17
getOtherFinger(currentPos){
return !currentPos
}
getFinger(fingerPos, otherFingerPos, BoundaryCoor){
tempPos = null
if(withinBoundary(fingerPos)==true)
tempPos = fingerPos
else if(withinBoundar(fingerPos)
tempPos = otherFingerPos
return tempPos
}
detectFingers(){
boundaryCoor1, boundaryCoor2
while(screenIsTouched){
if(there are two fingers){
fingerpos = getOtherFinger(fingerPos)
delay()
fingerpos2 = getOtherFinger(fingerPos)
delay()
finger1 = getFinger(fingerPos, fingerPos2, boundary1)
finger2 = getFinger(fingerPos, fingerPos2, boundary2)
}
}
}
I'm not an expert and my idea is only a bit near to what i am trying to achieve, but at least hey i'm trying to visualize so folks help me out, I know there are a lot of programmers out there with insane skills when it comes to this
|

19th July 2011, 02:29 AM
(Last edited by Primark; 19th July 2011 at 02:31 AM.)
Reason: forgot to include the paragraph that i was replying to
|
Member - OP
Thanks Meter 0
Posts: 31
Join Date: Feb 2011
|
Yes i get that, but how would you know, which one is moving at the time, correct me if I'm wrong, but when there are already two spots pressed and the coordinates are already swapped, you can't move the first finger, you would have to rise one finger and the press the screen again, because there is only one touch recognized. To make it work this way, we would need DT digitizer, this is not possible to make on single touch screen. The 1ms switching is useless, you can't recognize if the moving finger is the first or the second one, you would only knew, that one of them is moving.
sir, that is why we need to use a relative post and a boundary, so that every time we swap to extract the coordinate of a finger, using a post or a central position and a boundary we have a basis for its movement and which finger is 1 or 2
|

20th July 2011, 12:40 PM
|
Senior Member
Thanks Meter 92
Posts: 194
Join Date: Jun 2011
Location: malappuram
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
Go to top of page...
|
|
|
|