コード例 #1
0
    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()
        }
    }
コード例 #2
0
        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;
        }
コード例 #3
0
        private void _playTrack(InteractionGesture gesture)
        {
            if (configService.VolumeEnabled)
            {
                SoundPlayer player;

                if (gestureToSoundMap.TryGetValue(gesture, out player))
                {
                    player.Play();
                }
                else
                {
                    SystemSounds.Exclamation.Play();
                }
            }
        }
コード例 #4
0
ファイル: Interaction.cs プロジェクト: hendrik-schulte/jumpvr
 public InteractionGestureEventArgs(InteractionGesture ig)
 {
     PerformedGesture = ig;
 }
コード例 #5
0
 public static void PlayTrack(InteractionGesture gesture)
 {
     Instance()._playTrack(gesture);
 }