R

Resistive Screen Multi Touch SDK Demo

aleX Fr., 06. August, 2010 um 3:45 #1



Link: http://forum.xda-developers.com/showthread.php?t=593290

aleX Fr., 06. August, 2010 um 3:46 #2


Zitat:
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

[code:1]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();
}
}[/code:1]




Top