Esempio n. 1
0
        public override void ProcessInput(InputHandler Input)
        {
            if (Input.Keyboard.KeyPressed(Keys.Escape))
                this.Stop();

            if (Input.Keyboard.KeyPressed(Keys.Q))
                ((Fader)GetModule("Fader")).FadeOutAndIn(2);

            if (Input.Keyboard.KeyPressed(Keys.E))
                ((Fader)GetModule("Fader")).FadeIn(1);

            if (Input.Keyboard.KeyPressed(Keys.W))
                ((Fader)GetModule("Fader")).FadeOut(1);

            if (Input.Keyboard.KeyPressed(Keys.A))
                ((Fader)GetModule("Fader")).Pulse(2);

            if (Input.Keyboard.KeyPressed(Keys.D1))
                Modules[1].Running = !Modules[1].Running;

            if (Input.Keyboard.KeyPressed(Keys.D2))
                Modules[2].Running = !Modules[2].Running;

            if (Input.Keyboard.KeyPressed(Keys.D3))
                GetModule("ShowFPS").Running = !GetModule("ShowFPS").Running;
        }
Esempio n. 2
0
 public override void ProcessInput(InputHandler Input)
 {
 }
Esempio n. 3
0
 public void SetFocus(InputHandler input)
 {
     FocusControl = input;
 }
Esempio n. 4
0
 public Mouse GetMouseState(InputHandler input)
 {
     if (FocusControl == input || true)
         return Mouse.GetInstance;
     else
         return Mouse.EmptyState;
 }
Esempio n. 5
0
 public Keyboard GetKeyboardState(InputHandler input)
 {
     if (FocusControl == input || true)
         return Keyboard.GetInstance;
     else
         return Keyboard.EmptyState;
 }
Esempio n. 6
0
 public bool CheckFocus(InputHandler input)
 {
     return (FocusControl == input);
 }