mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
simplified filed controls code for debug menu
This commit is contained in:
parent
3debf0442d
commit
c13561e5ba
@ -132,31 +132,10 @@ void FieldGetPlayerInput(struct FieldInput *input, u16 newKeys, u16 heldKeys)
|
||||
input->dpadDirection = DIR_EAST;
|
||||
|
||||
#if TX_DEBUG_SYSTEM == TRUE && TX_DEBUG_SYSTEM_IN_MENU == FALSE
|
||||
if (heldKeys & R_BUTTON)
|
||||
if ((heldKeys & R_BUTTON) && input->pressedStartButton)
|
||||
{
|
||||
if (input->pressedSelectButton)
|
||||
{
|
||||
input->input_field_1_0 = TRUE;
|
||||
input->pressedSelectButton = FALSE;
|
||||
}
|
||||
else if (input->pressedStartButton)
|
||||
{
|
||||
input->input_field_1_2 = TRUE;
|
||||
input->pressedStartButton = FALSE;
|
||||
}
|
||||
}
|
||||
if (heldKeys & L_BUTTON)
|
||||
{
|
||||
if (input->pressedSelectButton)
|
||||
{
|
||||
input->input_field_1_1 = TRUE;
|
||||
input->pressedSelectButton = FALSE;
|
||||
}
|
||||
else if (input->pressedStartButton)
|
||||
{
|
||||
input->input_field_1_3 = TRUE;
|
||||
input->pressedStartButton = FALSE;
|
||||
}
|
||||
input->input_field_1_2 = TRUE;
|
||||
input->pressedStartButton = FALSE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user