6 of 6
6
MIRIA now supporting Windows 7 / Silverlight 3 multitouch
Posted: 20 February 2010 01:16 PM   [ Ignore ]   [ # 76 ]
Rank
Joined  2010-01-31
Total Posts:  5
New Member

Quick question: Is there an easy way to find out how man fingers are down at a time?
I want to restrict certain gestures only if certain amount of fingers are down.

Right now I am trying to establish some general touch guidlines such as:

+ One finger for operations (Tap, Drag, move)
+ Two finger for manipulation (Zoom, Rotate)
+ Three fingers for navigation (Swipe right, left)

in order to do this, I would have to check how many fingers are down at a time in the compete system.
It would be nice if I could ask Miria somehow “statically” to find out how many fingers are down.

I have not yet put you new scrollbar in. Can I turn off the autoscale behavior? Some scrollviews of mine must not scroll otherwise they look really not good

Thanks and keep up the good work!

Profile
 
 
Posted: 20 February 2010 02:21 PM   [ Ignore ]   [ # 77 ]
Avatar
Rank
Joined  2008-06-05
Total Posts:  92
New Member

I will add property to switch off autoscale in the next release.
To find out how many fingers are down you can just check the public exposed member ScrollView.Interpreter.Fingers.Count or the private one if inside ScrollView (_gestureinterpreter.Fingers.Count).

G.

Chris_Muench - 20 February 2010 01:16 PM

Quick question: Is there an easy way to find out how man fingers are down at a time?
I want to restrict certain gestures only if certain amount of fingers are down.

Right now I am trying to establish some general touch guidlines such as:

+ One finger for operations (Tap, Drag, move)
+ Two finger for manipulation (Zoom, Rotate)
+ Three fingers for navigation (Swipe right, left)

in order to do this, I would have to check how many fingers are down at a time in the compete system.
It would be nice if I could ask Miria somehow “statically” to find out how many fingers are down.

I have not yet put you new scrollbar in. Can I turn off the autoscale behavior? Some scrollviews of mine must not scroll otherwise they look really not good

Thanks and keep up the good work!

Profile
 
 
Posted: 27 February 2010 01:06 PM   [ Ignore ]   [ # 78 ]
Rank
Joined  2010-01-31
Total Posts:  5
New Member

Have you played with the Apple Magic Mouse?
This might be a great input device for your TUIO gateway.

One other question: Have you worked with Silverlight 4 beta yet?
It supports a webcam but that needs to be activated in a “user event” (mouse click and touch) but it looks like Miria does not route the touch events correcly to the permission “engine” of the webcam system. In other words:

if (CaptureDeviceConfiguration.AllowedDeviceAccess || CaptureDeviceConfiguration.RequestDeviceAccess())
                    
{
                        _CamSource
.Start();
                    
}

Needs to be in an event handler. I put it in a “Tapped” hander of Miria but SL4 does not recognize this as a “user event”.
I did post this as a bug with the SL4 team as well to see which side causes this behaviorsmile

Cheers,
Chris

Profile
 
 
Posted: 28 February 2010 04:15 PM   [ Ignore ]   [ # 79 ]
Rank
Joined  2010-01-31
Total Posts:  5
New Member

Hi Gene,

I enhanced your TButton somewhat to help with some scenarios I have.
I like the way I can drag the buttons, but in some cirumstances that is not desired, so I added a property to turn it off:

public bool IsDragEnabled
        {
            get
;
            
set;
        
}
//in FingerMove(..
                //
                
if (CoDe_IsDragEnabled)
                
{
                    Point l 
_transformhelper.Translate;
                
l.+= Utility.Transform2d.AdjustToParent(this_myfinger.Shift).X;
                
l.+= Utility.Transform2d.AdjustToParent(this_myfinger.Shift).Y;
                    
_transformhelper.Translate l;
                
}
                
//

Also, I found that this created some issues with touch when a user moves his finger off the button while still having the finger on the screen.
The result is that the button remains pressed (if I to for the “Tapped” event) but the tapped event is not fired (as it should!).
I added an Even for that case (just a “Action” since I only need to trigger he “ReleaseButtonAnimation” and nothing else):

so in FingerUp:

if (_enabled && _myfinger != null)
            
{
                
if (Utility.Vector2D.Distance(_myfinger.StartPosition_myfinger.Position) < 32//instead of a constant here..it would be great if the code checks if the finger is still ON the button or moved off of it
                
{
                    
if (Tapped != nullTapped(this, new FingerTouchEventArgs(_myfinger.Clone()));
                
}
                
else
                
{
                    
if (JustUp != nullJustUp(); //That is the Action
                
}
            }

Cheers
Chris

Profile
 
 
Posted: 05 April 2010 12:53 AM   [ Ignore ]   [ # 80 ]
Rank
Joined  2010-01-31
Total Posts:  5
New Member

Hi Gene,

I have an new interesting question for you:

I have a 10 Point Multitouch Screen to work with and want to use 3 fingers to do a “back” / “forward” gesture.
The plan is not to make this too intuitive to find...more like a back-door.

Trouble is: your gesture interpreter only works with one-finger.
If I use the _Translate event, I get all three fingers fired in a row

Is there a way to “reset” the gesture interpreter once I handled an event?

My plan is:
+ catch the translate event
+ Check how many fingers are down
+ If more then 2 then I “reset” the gesture interpreter (meaning no subsequent translates on different fingers)
+ I do my Back/Forward

Do you have a suggestion how to do this maybe better?

Cheers
Chris

Profile
 
 
Posted: 09 November 2010 11:08 PM   [ Ignore ]   [ # 81 ]
Rank
Joined  2010-08-06
Total Posts:  2
New Member

Hello,Gene
I want to get your source code for MIRIA SDK. I just want to study it.Can you give me?

Profile
 
 
Posted: 11 January 2011 09:05 PM   [ Ignore ]   [ # 82 ]
Rank
Joined  2011-01-08
Total Posts:  1
New Member
Chris_Muench - 06 February 2010 04:30 AM

I want to use the “ChildWindow” control of Silverlight. Looks like Touch events are not propagated correctly to these.

I tried couple things to make it works but no success.
Does the next version will include this fix ?

Profile
 
 
Posted: 04 February 2011 04:22 PM   [ Ignore ]   [ # 83 ]
Avatar
Rank
Joined  2008-06-05
Total Posts:  92
New Member

Complete source code has now been opened and released with MIRIA 1.05beta available at:

http://miria.codeplex.com/

If you succeed in fixing the mouse click issue please report =)
Thanks.

G.

Moonshield - 11 January 2011 09:05 PM

Chris_Muench - 06 February 2010 04:30 AM

I want to use the “ChildWindow” control of Silverlight. Looks like Touch events are not propagated correctly to these.

I tried couple things to make it works but no success.
Does the next version will include this fix ?

Profile
 
 
   
6 of 6
6