Code example for Keyboard

Methods: getKeys

0
        if (keyboard == null)
            throw new NullPointerException();
        mCorrectionX = (int)correctionX;
        mCorrectionY = (int)correctionY;
        mKeyboard = keyboard;
        List<Key> keys = mKeyboard.getKeys();
        Key[] array = keys.toArray(new Key[keys.size()]);
        mKeys = array;
        return array;
    } 
 
    protected int getTouchX(int x) {
        return x + mCorrectionX;
    } 
 
    protected int getTouchY(int y) {
        return y + mCorrectionY;
    } 
 
    protected Key[] getKeys() {