Beispiel #1
0
        public virtual void PressActionKey(Int32 keyCode)
        {
            ActionKey key = (ActionKey)keyActions.GetValue(keyCode);

            if (key != null)
            {
                key.Press();
            }
        }
Beispiel #2
0
 public void DoClick(LComponent comp)
 {
     if (!action.IsPressed())
     {
         action.Press();
         if (comp.Tag is Screen)
         {
             Screen screen = (Screen)comp.Tag;
             screen.ReplaceScreen(new MyAVGScreen(), MoveMethod.FROM_LEFT);
         }
     }
 }
Beispiel #3
0
 public override void OnKeyDown(LKey e)
 {
     keySize = keyActions.Size();
     if (keySize > 0)
     {
         int keyCode = e.GetKeyCode();
         for (int i = 0; i < keySize; i++)
         {
             Int32 code = (Int32)keyActions.GetKey(i);
             if (code == keyCode)
             {
                 ActionKey act = (ActionKey)keyActions.GetValue(code);
                 act.Press();
             }
         }
     }
     Press(e);
 }