Esempio n. 1
0
        internal virtual void RegisterKeyInput()
        {
            if (keyInputRegistered)
            {
                return;
            }

            keyType    = new HandleKeyType(HandleKeyType);
            keyPress   = new HandleKeyPress(HandleKeyPress);
            keyRelease = new HandleKeyRelease(HandleKeyRelease);

            KeyboardInput.Instance.KeyTypeEvent    += keyType;
            KeyboardInput.Instance.KeyPressEvent   += keyPress;
            KeyboardInput.Instance.KeyReleaseEvent += keyRelease;

            keyInputRegistered = true;
        }
Esempio n. 2
0
        internal virtual void RegisterKeyInput()
        {
            if (keyInputRegistered)
                return;

            keyType = new HandleKeyType(HandleKeyType);
            keyPress = new HandleKeyPress(HandleKeyPress);
            keyRelease = new HandleKeyRelease(HandleKeyRelease);

            KeyboardInput.Instance.KeyTypeEvent += keyType;
            KeyboardInput.Instance.KeyPressEvent += keyPress;
            KeyboardInput.Instance.KeyReleaseEvent += keyRelease;

            keyInputRegistered = true;
        }