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())); }
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; } } }
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())); }