@Override
    public void onButtonUpdate(int controllerID, boolean buttonPressed,
            Component component)
    {
        if(buttonPressed)
        {
            String buttonIndex;
            buttonIndex = component.getIdentifier().toString();
            if(buttonIndex.equals("0"))
            {
                if(!UI.isMenuNull())
                {
                    UI.onMouseEvent(BlockyMain.instance.getCursorX(), BlockyMain.instance.getCursorY(), 0, buttonPressed);
                }
            }
            if(buttonIndex.equals("1"))
            {
                if(!UI.isMenuNull())
                {
                    UI.onMouseEvent(BlockyMain.instance.getCursorX(), BlockyMain.instance.getCursorY(), 1, buttonPressed);
                }
            }
            
        }
    }