Skip to content

Commit 8ba0354

Browse files
committed
Add Enter button detection
requires sysUtilGetSystemParamInt()
1 parent e33e55e commit 8ba0354

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/pkgi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ static void pkgi_do_main(pkgi_input* input)
239239

240240
if (input)
241241
{
242-
if (input->active & PKGI_BUTTON_O) {
243-
input->pressed &= ~PKGI_BUTTON_O;
242+
if (input->active & pkgi_cancel_button()) {
243+
input->pressed &= ~pkgi_cancel_button();
244244
if (pkgi_msg_dialog(MDIALOG_YESNO, "Exit to XMB?"))
245245
state = StateTerminate;
246246
}

source/pkgi_ps3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ void pkgi_start(void)
705705
LOG("mutex create error (%x)", ret);
706706
}
707707

708-
// if (config.enterButtonAssign == SCE_SYSTEM_PARAM_ENTER_BUTTON_CIRCLE)
709-
if (false)
708+
sysUtilGetSystemParamInt(SYSUTIL_SYSTEMPARAM_ID_ENTER_BUTTON_ASSIGN, &ret);
709+
if (ret == 0)
710710
{
711711
g_ok_button = PKGI_BUTTON_O;
712712
g_cancel_button = PKGI_BUTTON_X;

0 commit comments

Comments
 (0)