mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-22 02:29:17 +01:00
Fixed bug with page up/down
This commit is contained in:
parent
eb05f6ba2d
commit
37b6f606e2
@ -73,7 +73,7 @@ static const char *input_messages[] = {
|
|||||||
/*11*/ " ",
|
/*11*/ " ",
|
||||||
/*12*/ "Mouse emulation",
|
/*12*/ "Mouse emulation",
|
||||||
/*13*/ "^|On|Off",
|
/*13*/ "^|On|Off",
|
||||||
NULL,
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *hardware_messages[] = {
|
static const char *hardware_messages[] = {
|
||||||
|
@ -567,6 +567,7 @@ static void select_next(menu_t *p_menu, int dx, int dy, int cicle)
|
|||||||
|
|
||||||
p_menu->cur_sel = get_next_seq_y(p_menu, p_menu->cur_sel, dy, cicle);
|
p_menu->cur_sel = get_next_seq_y(p_menu, p_menu->cur_sel, dy, cicle);
|
||||||
next = get_next_seq_y(p_menu, p_menu->cur_sel, dy + 1, cicle);
|
next = get_next_seq_y(p_menu, p_menu->cur_sel, dy + 1, cicle);
|
||||||
|
if (IS_SUBMENU(p_menu->pp_msgs[p_menu->cur_sel])&&(dy!=1)&&(dy!=-1)) p_menu->cur_sel--;
|
||||||
if (p_menu->pp_msgs[p_menu->cur_sel][0] == ' ' ||
|
if (p_menu->pp_msgs[p_menu->cur_sel][0] == ' ' ||
|
||||||
p_menu->pp_msgs[p_menu->cur_sel][0] == '#' ||
|
p_menu->pp_msgs[p_menu->cur_sel][0] == '#' ||
|
||||||
IS_SUBMENU(p_menu->pp_msgs[p_menu->cur_sel]) )
|
IS_SUBMENU(p_menu->pp_msgs[p_menu->cur_sel]) )
|
||||||
@ -734,8 +735,8 @@ uint32_t menu_wait_key_press(void)
|
|||||||
if (SDL_JoystickGetButton(joy, 5) != 0 || /* + */
|
if (SDL_JoystickGetButton(joy, 5) != 0 || /* + */
|
||||||
SDL_JoystickGetButton(joy, 18) != 0) /* C+ */
|
SDL_JoystickGetButton(joy, 18) != 0) /* C+ */
|
||||||
keys |= KEY_PAGEUP;
|
keys |= KEY_PAGEUP;
|
||||||
if (SDL_JoystickGetButton(joy, 4) != 0 || /* + */
|
if (SDL_JoystickGetButton(joy, 4) != 0 || /* - */
|
||||||
SDL_JoystickGetButton(joy, 17) != 0) /* C+ */
|
SDL_JoystickGetButton(joy, 17) != 0) /* C- */
|
||||||
keys |= KEY_PAGEDOWN;
|
keys |= KEY_PAGEDOWN;
|
||||||
}
|
}
|
||||||
joy_keys_changed = keys != joy_keys_last;
|
joy_keys_changed = keys != joy_keys_last;
|
||||||
|
Loading…
Reference in New Issue
Block a user