private void OnGesturePerformed(InteractionGestureEventArgs ig) { _isLockedUntilNextJump[ig.PerformedGesture] = true; if (PerformedInteractionGesture != null) { PerformedInteractionGesture(ig); } }
private void PlayFixedAnimationsGestures(InteractionGestureEventArgs igArgs) { InteractionGesture performedGesture = igArgs.PerformedGesture; if (performedGesture == InteractionGesture.AssCombo) { //... //here you could play some animation depending on the gesture, e.g. an ass bomb, like it is performed in PlayFixedAnimationsState() } }
//react to trampolin gesture and state events (set strings) private void UpdateGestureText(InteractionGestureEventArgs ig) { _lastGestureText = ig.PerformedGesture.ToString(); }