mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Clarify when buttons are initially pressed.
This commit is contained in:
parent
e74f150239
commit
04ac1e3efa
@ -124,7 +124,7 @@ static void get_binds(config_file_t *conf, config_file_t *auto_conf, int player,
|
||||
bool block_axis = false;
|
||||
|
||||
poll_joypad(driver, joypad, &old_poll);
|
||||
fprintf(stderr, "\nJoypads tend to have stale state after opened.\nPress some buttons and move some axes around to make sure joypad state is reset properly.\nWhen done, press Enter ... ");
|
||||
fprintf(stderr, "\nJoypads tend to have stale state after opened.\nPress some buttons and move some axes around to make sure joypad state is completely neutral before proceeding.\nWhen done, press Enter ... ");
|
||||
getchar();
|
||||
poll_joypad(driver, joypad, &old_poll);
|
||||
|
||||
@ -144,6 +144,12 @@ static void get_binds(config_file_t *conf, config_file_t *auto_conf, int player,
|
||||
initial_axes[i] = initial;
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_BUTTONS; i++)
|
||||
{
|
||||
if (old_poll.buttons[i])
|
||||
fprintf(stderr, "Button %d was initially pressed. This indicates broken initial state.\n", i);
|
||||
}
|
||||
|
||||
fprintf(stderr, "Configuring binds for player #%d on joypad #%d.\n\n",
|
||||
player + 1, joypad);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user