Skip to content

Commit

Permalink
Add Enter button detection
Browse files Browse the repository at this point in the history
requires sysUtilGetSystemParamInt()
  • Loading branch information
bucanero committed Jun 23, 2020
1 parent e33e55e commit 8ba0354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/pkgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ static void pkgi_do_main(pkgi_input* input)

if (input)
{
if (input->active & PKGI_BUTTON_O) {
input->pressed &= ~PKGI_BUTTON_O;
if (input->active & pkgi_cancel_button()) {
input->pressed &= ~pkgi_cancel_button();
if (pkgi_msg_dialog(MDIALOG_YESNO, "Exit to XMB?"))
state = StateTerminate;
}
Expand Down
4 changes: 2 additions & 2 deletions source/pkgi_ps3.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,8 @@ void pkgi_start(void)
LOG("mutex create error (%x)", ret);
}

// if (config.enterButtonAssign == SCE_SYSTEM_PARAM_ENTER_BUTTON_CIRCLE)
if (false)
sysUtilGetSystemParamInt(SYSUTIL_SYSTEMPARAM_ID_ENTER_BUTTON_ASSIGN, &ret);
if (ret == 0)
{
g_ok_button = PKGI_BUTTON_O;
g_cancel_button = PKGI_BUTTON_X;
Expand Down

0 comments on commit 8ba0354

Please sign in to comment.