GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
i did this:

if(button_on & PSP_CTRL_LEFT)   direction = -1;

if(button_on & PSP_CTRL_CROSS) direction = 0;

//if(button_on & PSP_CTRL_CIRCLE) direction = 0;

if(button_on & PSP_CTRL_RIGHT)  direction = 1;

I commented out the "if(button_on & PSP_CTRL_CIRCLE) direction = 0;"
 then the button does not work when you press circle on vshmenu.

Original comment by [email protected] on 4 Jun 2011 at 10:18

from procfw.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
This isn't the right way to fix this bug, it shouldn't *always* ignore O unless 
it isn't already ignoring X. The inverse bug exists in VSHmenu for those who 
use O confirm.

Original comment by [email protected] on 6 Jun 2011 at 1:17

from procfw.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
its actually not a bug... its a feature for the ones that uses O as there 
confirm button(japanese PSPs)...

The one above(my post) just fits my needs and I also remove the ability to swap 
the X/O buttons in the Recovery menu since i don't need it.

Team Pro forgot to add the button check between X and O but the recovery menu 
has this check to which button is Confirm. this:

//Confirm button check for Recovery Menu
void get_confirm_button(void)
{
    int result = 0;

    sceUtilityGetSystemParamInt(9, &result);

    if (result == 0) { // Circle?
        g_ctrl_OK = PSP_CTRL_CIRCLE;
        g_ctrl_CANCEL = PSP_CTRL_CROSS;
    } else {
        g_ctrl_OK = PSP_CTRL_CROSS;
        g_ctrl_CANCEL = PSP_CTRL_CIRCLE;
    }
}

//and this is the button control for vsh menu no check

int menu_ctrl(u32 button_on)
{
    int direction;

    if( (button_on & PSP_CTRL_SELECT) ||
        (button_on & PSP_CTRL_HOME)) {
        menu_sel = TMENU_EXIT;
        return 1;
    }

    // change menu select
    direction = 0;

    if(button_on & PSP_CTRL_DOWN) direction++;
    if(button_on & PSP_CTRL_UP) direction--;

    menu_sel = limit(menu_sel+direction, 0, TMENU_MAX-1);

    if(psp_model == PSP_GO && menu_sel == TMENU_UMD_VIDEO) {
        menu_sel = limit(menu_sel+direction, 0, TMENU_MAX-1);
    }

    // LEFT & RIGHT
    direction = -2;

    if(button_on & PSP_CTRL_LEFT)   direction = -1;
    if(button_on & PSP_CTRL_CROSS) direction = 0;
    if(button_on & PSP_CTRL_CIRCLE) direction = 0;
    if(button_on & PSP_CTRL_RIGHT)  direction = 1;

    if(direction <= -2)
        return 0;

    switch(menu_sel) {
        case TMENU_XMB_CLOCK:
            if(direction) change_clock( direction, 0);
            break;
        case TMENU_GAME_CLOCK:
            if(direction) change_clock( direction, 1);
            break;
        case TMENU_USB_DEVICE:
            if(direction) change_usb( direction );
            break;
        case TMENU_UMD_MODE:
            if(direction) change_umd_mode( direction );
            break;
        case TMENU_UMD_VIDEO:
            if(direction) {
                change_umd_mount_idx(direction);

                if (0 != get_umdvideo_path(umdvideo_idx, umdvideo_path, sizeof(umdvideo_path))) {
                    strcpy(umdvideo_path, "None");
                }
            } else {
                return 7; // Mount UMDVideo ISO flag
            }
            break;
        case TMENU_RECOVERY_MENU:
            if(direction==0) {
                return 6; // Recovery menu flag
            }
            break;
        case TMENU_SHUTDOWN_DEVICE:
            if(direction==0) {
                return 3; // SHUTDOWN flag
            }
            break;
        case TMENU_RESET_DEVICE:
            if(direction==0) {
                return 2; // RESET flag
            }
            break;
        case TMENU_RESET_VSH:
            if(direction==0) {
                return 4; // RESET VSH flag
            }
            break;
        case TMENU_SUSPEND_DEVICE:
            if(direction==0) {
                return 5; // SUSPEND flag
            }
            break;
        case TMENU_EXIT:
            if(direction==0) return 1; // finish
            break;
    }

    return 0; // continue
}

and as you can see the shutdown and reset option is set to 0 which is the X and 
the O button. so its not a bug the code speaks for its self.

Original comment by [email protected] on 6 Jun 2011 at 1:55

from procfw.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024

Original comment by [email protected] on 16 Jun 2011 at 12:59

  • Changed state: WontFix

from procfw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.