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() } }
public ShortcutItem GetShortcut(InteractionGesture key) { List<ShortcutDefinition> list = getReaderWriterService().GetActiveShortCutList(); if (list.Count > 0) { if (currIdx >= list.Count) { currIdx = 0; } return list[currIdx].GestureMap[key]; } return null; }
private void _playTrack(InteractionGesture gesture) { if (configService.VolumeEnabled) { SoundPlayer player; if (gestureToSoundMap.TryGetValue(gesture, out player)) { player.Play(); } else { SystemSounds.Exclamation.Play(); } } }
public InteractionGestureEventArgs(InteractionGesture ig) { PerformedGesture = ig; }
public static void PlayTrack(InteractionGesture gesture) { Instance()._playTrack(gesture); }