Exemple #1
0
        protected bool OnEnvKeyBuffPressed(MOIS.KeyEvent arg)
        {
            switch (arg.key)
            {
            case MOIS.KeyCode.KC_F:
                env.removeNinja(ref mSceneMgr);
                break;

            case MOIS.KeyCode.KC_R:
                env.addNinja(ref mSceneMgr);
                break;

            case MOIS.KeyCode.KC_H:
                env.removeSpaceMarine(ref mSceneMgr);
                break;

            case MOIS.KeyCode.KC_Y:
                env.addSpaceMarine(ref mSceneMgr);
                break;

            case MOIS.KeyCode.KC_Z:
                Character.MWalkSpeed += 50;
                break;

            case MOIS.KeyCode.KC_X:
                Character.MWalkSpeed -= 50;
                break;
            }

            return(true);
        }
Exemple #2
0
 bool mKeyboard_KeyReleased(MOIS.KeyEvent arg)
 {
     return(true);
 }
Exemple #3
0
 bool mKeyboard_KeyPressed(MOIS.KeyEvent arg)
 {
     return(true);
 }
Exemple #4
0
 bool Keyboard_KeyPressed(MOIS.KeyEvent arg)
 {
     ScreenManager.Instance.InjectKeyPressed(arg);
     return(true);
 }
 /// <summary>
 /// Runs whenever we press the key to toggle whether to show or hide the console.
 /// </summary>
 void OnKeyboardPress(KeyEvent eventArgs)
 {
     if (eventArgs.key == KeyCode.KC_RETURN && !luaGui.Visible) {
         Show();
     }
     else if (eventArgs.key == KeyCode.KC_UP && luaGui.Visible && !LKernel.Get<InputSwallowerManager>().IsSwallowed(this)) {
         textBox.Text = lastInput;
     }
 }