Пример #1
0
        protected override void InitializeInput()
        {
            base.InitializeInput();

            int windowHandle;
            mRenderWindow.GetCustomAttribute("WINDOW", out windowHandle);
            mInputMgr = MOIS.InputManager.CreateInputSystem((uint)windowHandle);

            mEnvKeyboard = (MOIS.Keyboard)mInputMgr.CreateInputObject(MOIS.Type.OISKeyboard, true);
            mEnvKeyboard.KeyPressed += new KeyListener.KeyPressedHandler(OnEnvKeyBuffPressed);
        }
Пример #2
0
        protected override void InitializeInput()
        {
            base.InitializeInput();

            int windowHandle;

            mRenderWindow.GetCustomAttribute("WINDOW", out windowHandle);
            mInputMgr = MOIS.InputManager.CreateInputSystem((uint)windowHandle);

            mEnvKeyboard             = (MOIS.Keyboard)mInputMgr.CreateInputObject(MOIS.Type.OISKeyboard, true);
            mEnvKeyboard.KeyPressed += new KeyListener.KeyPressedHandler(OnEnvKeyBuffPressed);
        }
Пример #3
0
 protected AbstractChangerHelper(Keyboard keyboard, MenuScreen parent)
 {
     this.parent   = parent;
     this.callback = new Callback(this);
     this.keyboard = keyboard;
 }