Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,384 Members 44,732 Now Online
XDA Developers Android and Mobile Development Forum

[SDK][PreAlpha Preview] DualTouch SDK for resistive Screens

Tip us?
 
anaadoul
Old
(Last edited by anaadoul; 9th April 2010 at 01:14 AM.)
#1  
anaadoul's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 394
Join Date: Dec 2008
Location: Riyadh
Default [SDK][PreAlpha Preview] DualTouch SDK for resistive Screens

Beta Version is HERE (Beta1).

looking for developer to write an Album Application (OpenGlEs?) and utilize the SDK to enable pinch-to-zoom on resistive screens.

Greetings,
Wow right!
finally i was able to perform a dual touch on our resistive screens and you can find the dll in the attachements along with a demo app!

NOTE TO EVERYONE :
Please don't report the 1 finger bug, it's well known and it will be eliminated (BTW, Zoom in is possible with 1 finger but zoom out is not)
this demo app is simply a demo app and only to show that the SDK is functional, it WILL NOT zoom to focus the pinched area! if you can develop a demo application and you have a graphics development experience please be my guest and i will help you with the SDK. the current demo only resizes the image and doesn't relocate it. i can do a proper one but this will mean taking time from the real project.
thank you

documentation will NOT be available as this is a preAlpha and it's just to get you excited

here is the demo

Video
http://www.youtube.com/watch?v=ld_kIpLWa3Y












Notice :
  • i'm not responsible for anything might happen to your phone (Even though i'm sure there is nothing to go wrong but just in case).
  • This is just a pre-alpha, and there is no garantee to go beyond this version. i'm doing this for the community for free and as a proof of concept only. i will continue to work on this on my free time but please don't rush!
  • you are not allowed to to ask people to pay for this SDK.
  • you are not allowed to disassemble the SDK or reverse engineer it.
  • you are not allowed to post the attachement(s) below to any other website. you can always link to this tread.
  • if you are going to use it in your application, you MUST put a link in your application/offical website that reffers to this XDA thread.
  • i reserve the right to make this a paid SDK at any point of time.
  • i reserve the right to relocate this SDK to another website or even take it offline.
that was long right?!

ok, let's go to business!

Demo Attached

To Use the demo, place 1st finger on the image, then place the 2nd finger also on the image and slide your second finger in or out!

Requres .Net Compat Framework 3.5,
Tested on
- Touch Pro 2 (HTC Rhodium)
- Touch HD (HTC Blackstone)
- Xperia X1

Regards,
Adel R. Al Zubeir (Anaadoul)
Attached Files
File Type: zip DualTouch.zip - [Click for QR Code] (87.7 KB, 3408 views)
- Join our community http://windowsphoneme.com
- Follow me on twitter @anaadoul
-----------
[SDK] Dual-Touch SDK for Resistive Screens V1.0 Beta + Rotation Alpha + Demo
-----------
X1
Touch HD
Touch Pro 2
HD2
Omnia 7
 
anaadoul
Old
(Last edited by anaadoul; 2nd December 2009 at 07:10 PM.) Reason: Simple Documentation
#2  
anaadoul's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 394
Join Date: Dec 2008
Location: Riyadh
Default Documentation

How to use the SDK!
create an instanse of the class,
the object wich will detect the mouse clicks MUST have mouse down, up and move.


for example in the demo above the code is as following and i use picturebox

publicpartialclassForm1 : Form
{
DualTouchSDK.DualTouchSDK SDK = new DualTouchSDK.DualTouchSDK();
privatevoid Form1_Load(object sender, EventArgs e)
{
SDK.Zooming += new DualTouchSDK.DualTouchSDK.MultiTouchEventHandler(SDK_Zooming);
}
void SDK_Zooming(DualTouchSDK.MultiTouchEventArgument e)
{
// Do the zooming here e.ZoomRatio returns a value which is the % of the zoom < 1 = zoom in, > 1 zoom out.
}
privatevoid pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
SDK.SetMouseDown(e.X, e.Y);
}
privatevoid pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
SDK.SetMouseMove(e.X, e.Y);
}
privatevoid pictureBox1_MouseUp(object sender, MouseEventArgs e)
{
SDK.MouseUp();
}
}
- Join our community http://windowsphoneme.com
- Follow me on twitter @anaadoul
-----------
[SDK] Dual-Touch SDK for Resistive Screens V1.0 Beta + Rotation Alpha + Demo
-----------
X1
Touch HD
Touch Pro 2
HD2
Omnia 7
 
anaadoul
Old
(Last edited by anaadoul; 4th December 2009 at 02:02 PM.)
#3  
anaadoul's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 394
Join Date: Dec 2008
Location: Riyadh
Known Bugs (V0.0)
- Single Finger sliding causes zoom IN (notice that you CANNOT zoom OUT).
- Join our community http://windowsphoneme.com
- Follow me on twitter @anaadoul
-----------
[SDK] Dual-Touch SDK for Resistive Screens V1.0 Beta + Rotation Alpha + Demo
-----------
X1
Touch HD
Touch Pro 2
HD2
Omnia 7
 
KilZone
Old
#4  
KilZone's Avatar
Senior Member
Thanks Meter 1
Posts: 145
Join Date: Sep 2008
First of all, nice try. As developer I kind of (think to) know the technique involved processing this and for most part this could work. However since WinMo 6.5.x has it's own overlay I must admit it's not working properly on build 28008 (and 28002).

Actually it does work if you don't release the screen, but once you do, it's completely useless. You can't do anything but scroll, this probably because of the kinetic scrolling overlay. (This only happends if the image is larger than the screen ofcourse, everything else works as advertised!)

Second, may I add a suggestion (something I once tried in an application but never finished)? If you place your finger on the photo and then place the second finger the application imediately zooms in to like 400% (depending on the place your finger is placed), This makes it hard to pinch-to-zoom out, since you actually have to place the two fingers on the same position.

My idea is this. Whenever your first finger is placed down (and the coordinates are stored) and you place the second finger on the screen, the app would recognize this as a movement of the first finger but in 0 milliseconds. It might be possible to make a sort of minimum time required to move from 'a' to 'b', so the initial position of the two fingers can be 'stored'.

I hope I made myself clear enough for you to understand, as I do not have too much time to explain it better. If you like I can explain it better, but that would be later tonight, for now got to run!
 
anaadoul
Old
#5  
anaadoul's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 394
Join Date: Dec 2008
Location: Riyadh
Maybe this is due to the kenetic scrooling, i hope you can watch the video, the zoom will take effect only when you move your 2nd finger not after placing it!

anyway this requires alot of testing and alot of improvements as it's still pre pre pre alpha.

i tested it and it's working good enough on my TP2 and a WM6.5.0 ROMs
- Join our community http://windowsphoneme.com
- Follow me on twitter @anaadoul
-----------
[SDK] Dual-Touch SDK for Resistive Screens V1.0 Beta + Rotation Alpha + Demo
-----------
X1
Touch HD
Touch Pro 2
HD2
Omnia 7
 
KilZone
Old
(Last edited by KilZone; 2nd December 2009 at 04:34 PM.)
#6  
KilZone's Avatar
Senior Member
Thanks Meter 1
Posts: 145
Join Date: Sep 2008
Agreed the video is what I had in mind, I'm sorry I should have watched it (though it wasn't up yet when I started replying). Anyway (still being here) this is not what I get, probably due to my build being different. As soon as I place my second finger on the screen it zooms in about 400% or 500%. I actually can pinch to zoom out if I place my fingers in de top-left and bottom-right corner, and move inwards... since the distance is larger than the amount of zooming done initially I can zoom out. Fact remains that everything only works as long as the image isn't larger than the screen, but all this is rather a Windows Mobile error than yours!

Good work, hope to include it into my projects some day!

Stil forgot to mention some required debuggin information (so you can keep track of things if you want)! I use a Touch HD (BlackStone) T8282 (Original Model). I use homecooked ROMs and now running WinMo 6.5.3 build 28008. Besides the regular HTC stuff I have no applications installed (as most is cooked in). I have no Manila 2.5 running and ... that's it.

Quote:
Originally Posted by anaadoul View Post
Maybe this is due to the kenetic scrooling, i hope you can watch the video, the zoom will take effect only when you move your 2nd finger not after placing it!

anyway this requires alot of testing and alot of improvements as it's still pre pre pre alpha.

i tested it and it's working good enough on my TP2 and a WM6.5.0 ROMs
 
JValmont
Old
#7  
JValmont's Avatar
Member
Thanks Meter 0
Posts: 67
Join Date: Oct 2008
Location: Saint Marys, GA
pocketnow.com is paying attention - congrats, and I can't wait to see more
http://pocketnow.com/tweaks-hacks/mu...istive-screens
Val
Tilt 2 Non camera
|R|6.5.5|ROM|WWE| ★ Energy "Leo" 23529/21891 |Feb 7| ★ Sense 2.5.2011 / MaxManila ★
 
anaadoul
Old
#8  
anaadoul's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 394
Join Date: Dec 2008
Location: Riyadh
Anyone know how to make opera Zoom through an external app?
maybe sendmessage API or something similar?
- Join our community http://windowsphoneme.com
- Follow me on twitter @anaadoul
-----------
[SDK] Dual-Touch SDK for Resistive Screens V1.0 Beta + Rotation Alpha + Demo
-----------
X1
Touch HD
Touch Pro 2
HD2
Omnia 7
 
g2tl
Old
#9  
Senior Member
Thanks Meter 23
Posts: 1,055
Join Date: Nov 2007
Location: Boston
It probably has a lot to do with sensitivity.
For me, resting one finger and using the other to do the gesture works the best. The key is to make sure the resting finger doesn't jitter much.
 
theraf90
Old
#10  
theraf90's Avatar
Member
Thanks Meter 5
Posts: 82
Join Date: Oct 2008
Location: Bari

 
DONATE TO ME
gotta try this!!!

Tags
multi touch, multitouch, r3dt, resistive, sdk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Remove Unnecessary WhatsApp Elements with Xposed

In modern life, you can’t underestimate the power ofthe dark sidemessaging … more

MaR-V-iN to Talk Google and Android APIs at XDA:DevCon 2014

Our international xda:devcon 14in Manchester, UK on the weekend of September … more