コード例 #1
0
 private void onKey(AsKeyboardEvent _event)
 {
     if (!mStarted)
     {
         return;
     }
     makeCurrent();
     mStage.dispatchEvent(new starling.events.AsKeyboardEvent(_event.getType(), _event.getCharCode(), _event.getKeyCode(), _event.getKeyLocation(), _event.getCtrlKey(), _event.getAltKey(), _event.getShiftKey()));
 }
コード例 #2
0
        private void onKey(AsEvent evt)
        {
            AsKeyboardEvent _event = ((AsKeyboardEvent)(evt));

            if (_event.getKeyCode() == 17 || _event.getKeyCode() == 15)
            {
                bool wasCtrlDown = mCtrlDown;
                mCtrlDown = _event.getType() == AsKeyboardEvent.KEY_DOWN;
            }
            else
            {
                if (_event.getKeyCode() == 16)
                {
                    mShiftDown = _event.getType() == AsKeyboardEvent.KEY_DOWN;
                }
            }
        }
コード例 #3
0
 private void onKey(AsKeyboardEvent _event)
 {
     if(!mStarted)
     {
         return;
     }
     makeCurrent();
     mStage.dispatchEvent(new starling.events.AsKeyboardEvent(_event.getType(), _event.getCharCode(), _event.getKeyCode(), _event.getKeyLocation(), _event.getCtrlKey(), _event.getAltKey(), _event.getShiftKey()));
 }