Example #1
0
        // Gets an empty version of the keyboard state
        public static KeyboardState getEmpty()
        {
            // Variables
            KeyboardState	keyboard=	new KeyboardState();

            keyboard.keysHeld=	new KKL[]{KKL.NONE};

            return keyboard;
        }
Example #2
0
        // Gets the keyboard's input state
        public static KeyboardState getKeyboardState()
        {
            // Variables
            KeyboardState	keyboard=	new KeyboardState();

            keyboard.keysHeld=	khelper.keysHeld.toArray();

            return keyboard;
        }