A Sparrow 2.x extension for handling shake/motion events. Note: The event only bubbles to Sparrow's root display object and stage.
Sample code:
[Sparrow.stage addEventListenerForType:SHEventTypeShake block:^(SHShakeEvent *event) { if (event.phase == SHShakePhaseEnded) { NSLog(@"did shake"); } }];