Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 protected AbstractChangerHelper(Keyboard keyboard, MenuScreen parent)
 {
     this.parent   = parent;
     this.callback = new Callback(this);
     this.keyboard = keyboard;
 }