How to detect tap on Windows phone - windows-phone-7

I want to detect the tap on the phone (Windows 7 OS), but not on the touch screen (probably on the side of the device). I am not sure whether it could be implemented with the accelerometer data. any idea?

It depends on the app, but probably we can consider Tap as Shake. If so take a look on
Shake that Windows Phone 7 and detect it
Windows Phone Shake Gestures Library
or similar. There is a ShakeGestureEventArgs arg that holds a ShakeType property that identifies the direction of the shake gesture.

Related

windows 8 gestures on edge of screen

I have a desktop application running on windows 7 and 8. We implemented gestures using WM_GESTURE to support both windows. When running on windows 8 tablet, if user try to swipe, pan etc from of the edge i.e out side the visible screen, gestures do not work. When i logged the event(messages) application receives, it shows no gesture message.
On metro apps you see menu at bottom of screen when you swipe up from outside the screen area. I want similar functionality with my desktop application. Is this possible? Does desktop app has limitation or i am missing something? I searched over but cannot find a clear cut answer positive or negative.
Further info if of any help. It is a MFC application using both VC++ and C#. Minimum supported version of windows is 7.
One more thing. Our application runs in full screen with no task bar etc, like slide show.

XNA Support Gestures on Windows 7

One of my friends is working on a Windows phone 7 game and XNA allow you to support gestures, now he wants to use the same code so the game will be supported on PC (Windows 7) i want to know how i support gestures on PC with a Touch Screen monitor, i have been looking on the web but apparently this is not so common.
So far the only reference that i have is to recreate the Touch class on C++, that's is not an option on time and budget
Maybe i am missing something obvious please help.
What I know is that a touch screen monitor needs to be handled as a mouse, so your friend needs to change all his gestures with MouseState and detecting left button clicks.
You just need to replace TouchLocations with the location of the pointer.

rotate gesture in Windows Phone

I want to capture the rotate gesture of an object in my Windows Phone app and animate the object to show that it has roatated.
I saw that WP7 doesn't give this gesture by default and i dint get the same in Toolkit as well. Can anyone help me get started.
You could try using the Multitouch behavior for the Windows Phone.
The tool kit is available here:
http://multitouch.codeplex.com/
And these links might help you understand it better:
http://www.windowsphonegeek.com/tips/gestures-in-wp7-the-basic
http://dotnetslackers.com/articles/silverlight/Windows-Phone-7-Silverlight-Programming-MultiTouch-and-Manipulation.aspx

Panning and zooming over a large image just like in Bing Map control

I am looking for a solution where I am able to do all the gestures (flick, pinch, drag) with a local picture in my Windows Phone 7 application with acceptable performance. The Silverlight Bing Map control for WP7 does all of this perfectly, but it cannot do this with a local image.
I started to write my own control, but I was wondering if there is anything out there written by someone else. Is there anything out there?
Is it possible to reuse the Map control, but with my own image?
Laurent Bugnion's Multitouch Behaviour from beta might also be worth a look for this purpose.
MultiTouch Behavior for Windows Phone 7
MultiTouch Behavior: Update for Windows Phone 7 tools beta
You need a MultiScaleImage. You can use this with DeepZoom.
There's an (old) example here.

Detecting multitouch iPhone-like "tap" on MacBookPro

After a period of iPhone work, I'm once again working on normal Cocoa apps on my MBP
and I miss the "tap" gesture. I know that I can turn on the incredibly annoying "Tap to Click",
feature in the Trackpad control pannel, but I don't want a click, I want a tap.
I know it's probably not mac canon, but is it possible to receive this multi-touch style event?
You might want to have a look at the native code underpinning my Java API: http://kenai.com/projects/macmultitouch

Resources