Pebble - Detect Shake Gesture - pebble-watch

How can I detect shake gestures from Pebble?
I just want to show up a text-layer when shaking the pebble...
They added a new API in SDK 2.0:
https://developer.getpebble.com/2/api-reference/group___accelerometer_service.html
http://developer.getpebble.com/2/guides/accelerometer.html

If you don't need control over the strength of the shake, you can use accel_tap_service_subscribe.

Related

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

Pinch and zoom behaviour for windows phone

Is it possible to create a behavior for Pinch and zoom to Image control in windows phone 8. I am trying to apply pinch and zoom along with rotation to Image in my application. In a forum I found that Gesture listener is deprecated and they are not promoting implementation with gesture. So can any one please suggest an alternative method for me.
If you're targeting only Windows Phone 8 you can use the new ManipulationDeltaEventArgs.PinchManipulation property from the ManipulationDelta event. Instead of using GestureListener/TouchPanel for pinch & zoom you should rely on this new property.
Maybe this could help you https://multitouch.codeplex.com/
Windows Phone / Silverlight Behaviors and WPF samples implementing Multi-Touch Manipulation (Gestures) and Inertia.

How to detect tap on Windows phone

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.

How to make the picture follow my finger WP7 Silverlight?

Something like dragging and dropping an image
Is there a basic sample that I can use for that purpose?
You can use OnManipulationStarter, OnManipulationDelta and OnManipulationCompleted events with TranslateTransform on some object to move it below your finger.
Also, advanced stuff will be MultiTouch Behavior for Windows Phone 7

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