Inheritance: EventArgs
Exemple #1
0
 void HandlePconGesturePerformed(object sender, PCGesture e)
 {
     switch(e.gesture){
         case Gesture.SELECT:
             SoundManager.SOUNDS.playSound(SoundManager.UI_CLICK,MasterController.UI_CAMERA_ALT);
             gs++;
             creditTimer = 20.0f;
             break;
         default:
             break;
     }
 }
Exemple #2
0
 void HandlePconGesturePerformed(object sender, PCGesture e)
 {
     switch(e.gesture){
         case Gesture.LEFT:
             gui.swipe(Direction.Left);
             break;
         case Gesture.RIGHT:
             gui.swipe(Direction.Right);
             break;
         case Gesture.UP:
             gui.swipe(Direction.Up);
             break;
         case Gesture.DOWN:
             gui.swipe(Direction.Down);
             break;
         case Gesture.SELECT:
             gui.selectOption(gui.pointer);
             break;
         default:
             break;
     }
 }
 void HandlePconGesturePerformed(object sender, PCGesture e)
 {
     switch(e.gesture){
         case Gesture.UP:
             gui.swipe(Direction.Up);
             break;
         case Gesture.DOWN:
             gui.swipe(Direction.Down);
             break;
         case Gesture.LEFT:
             gui.swipe(Direction.Left);
             switch(gui.pointer){
                 case MINUS1:
                 case MINUS2:
                 case MINUS3:
                     gui.selectOption(gui.pointer);
                     gui.swipe(Direction.Right);
                     break;
                 case ALIEN_SPEED:
                     gui.SetGUISliderProperty(ALIEN_SLIDER_SPEED,-0.1f);
                     break;
                 default:
                     break;
             }
             break;
         case Gesture.RIGHT:
             gui.swipe(Direction.Right);
             switch(gui.pointer){
                 case PLUS1:
                 case PLUS2:
                 case PLUS3:
                     gui.selectOption(gui.pointer);
                     gui.swipe(Direction.Left);
                     break;
                 case ALIEN_SPEED:
                     gui.SetGUISliderProperty(ALIEN_SLIDER_SPEED,0.1f);
                     break;
                 default:
                     break;
             }
             break;
         case Gesture.SELECT:
             gui.selectOption(gui.pointer);
             break;
     }
 }
Exemple #4
0
    void HandlePconGesturePerformed(object sender, PCGesture e)
    {
        switch(e.gesture){
            case Gesture.LEFT:
                switch(_state){
                    case State.INPUT:
                        guiInput.swipe(Direction.Left);
                        break;
                    case State.DISPLAY:
                        guiDisplay.swipe(Direction.Left);
                        break;
                    default:
                        break;
                }
                break;
            case Gesture.RIGHT:
                switch(_state){
                    case State.INPUT:
                        guiInput.swipe(Direction.Right);
                        break;
                    case State.DISPLAY:
                        guiDisplay.swipe(Direction.Right);
                        break;
                    default:
                        break;
                }
                break;
            case Gesture.UP:
                switch(_state){
                    case State.INPUT:
                        guiInput.swipe(Direction.Up);
                        switch(guiInput.pointer){
                            case UP1:
                            case UP2:
                            case UP3:
                                guiInput.selectOption(guiInput.pointer);
                                break;
                            default:
                                break;
                        }
                        break;
                    case State.DISPLAY:
                        guiDisplay.swipe(Direction.Up);
                        break;
                    default:
                        break;
                }
                break;
            case Gesture.DOWN:
                switch(_state){
                    case State.INPUT:
                        guiInput.swipe(Direction.Down);
                        switch(guiInput.pointer){
                            case DOWN1:
                            case DOWN2:
                            case DOWN3:
                                guiInput.selectOption(guiInput.pointer);
                                break;
                            default:
                                break;
                        }
                        break;
                    case State.DISPLAY:
                        guiDisplay.swipe(Direction.Down);
                        break;
                    default:
                        break;
                }
                break;
            case Gesture.SELECT:
                switch(_state){
                    case State.INPUT:
                        guiInput.selectOption(guiInput.pointer);
                        break;
                    case State.DISPLAY:
                        guiDisplay.selectOption(guiDisplay.pointer);
                        break;
                    default:
                        break;
                }
                break;
            default:
                break;
        }

        switch(guiInput.pointer){
            case UP1:
            case DOWN1:
                _initial = InputInitial.ONE;
                break;
            case UP2:
            case DOWN2:
                _initial = InputInitial.TWO;
                break;
            case UP3:
            case DOWN3:
                _initial = InputInitial.THREE;
                break;
            default:
                _initial = InputInitial.NONE;
                break;
        }
    }
Exemple #5
0
 //Perceptual Part
 void HandlePconGesturePerformed(object sender, PCGesture e)
 {
     switch(e.gesture){
         case Gesture.LEFT:
             gui.swipe(Direction.Left);
             switch(gui.pointer){
                 case MINUS1:
                 case MINUS2:
                     gui.selectOption(gui.pointer);
                     gui.swipe(Direction.Right);
                     break;
                 case MUSIC:
                     gui.SetGUISliderProperty(MUSIC_DISPLAY,-10.0f);
                     break;
                 case EFFECTS:
                     gui.SetGUISliderProperty(EFFECTS_DISPLAY,-10.0f);
                     break;
                 default:
                     break;
             }
             break;
         case Gesture.RIGHT:
             gui.swipe(Direction.Right);
             switch(gui.pointer){
                 case PLUS1:
                 case PLUS2:
                     gui.selectOption(gui.pointer);
                     gui.swipe(Direction.Left);
                     break;
                 case MUSIC:
                     gui.SetGUISliderProperty(MUSIC_DISPLAY,10.0f);
                     break;
                 case EFFECTS:
                     gui.SetGUISliderProperty(EFFECTS_DISPLAY,10.0f);
                     break;
                 default:
                     break;
             }
             break;
         case Gesture.UP:
             gui.swipe(Direction.Up);
             break;
         case Gesture.DOWN:
             gui.swipe(Direction.Down);
             break;
         case Gesture.SELECT:
             gui.selectOption(gui.pointer);
             switch(gui.pointer){
                 case PERCEPTUAL:
                     gui.selectOption(PERCEPTUAL_DISPLAY);
                     break;
                 case MUTE:
                     gui.selectOption(MUTE_DISPLAY);
                     break;
                 default:
                     break;
             }
             break;
     }
 }