mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-12-25 09:59:02 +01:00
remove: unneeded extra keyactions
This commit is contained in:
parent
e916dfbb0c
commit
5df422e705
4 changed files with 14 additions and 22 deletions
|
@ -544,15 +544,15 @@ void game_init(void) {
|
|||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_LEFT, A_MENU_LEFT);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_RIGHT, A_MENU_RIGHT);
|
||||
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_W, A_MENU_UP_2);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_S, A_MENU_DOWN_2);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_A, A_MENU_LEFT_2);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_D, A_MENU_RIGHT_2);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_W, A_MENU_UP);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_S, A_MENU_DOWN);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_A, A_MENU_LEFT);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_D, A_MENU_RIGHT);
|
||||
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_K, A_MENU_UP_3);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_J, A_MENU_DOWN_3);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_H, A_MENU_LEFT_3);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_L, A_MENU_RIGHT_3);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_K, A_MENU_UP);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_J, A_MENU_DOWN);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_H, A_MENU_LEFT);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_L, A_MENU_RIGHT);
|
||||
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_BACKSPACE, A_MENU_BACK);
|
||||
input_bind(INPUT_LAYER_SYSTEM, INPUT_KEY_C, A_MENU_BACK);
|
||||
|
|
|
@ -35,14 +35,6 @@ typedef enum {
|
|||
A_MENU_DOWN,
|
||||
A_MENU_LEFT,
|
||||
A_MENU_RIGHT,
|
||||
A_MENU_UP_2,
|
||||
A_MENU_DOWN_2,
|
||||
A_MENU_LEFT_2,
|
||||
A_MENU_RIGHT_2,
|
||||
A_MENU_UP_3,
|
||||
A_MENU_DOWN_3,
|
||||
A_MENU_LEFT_3,
|
||||
A_MENU_RIGHT_3,
|
||||
A_MENU_BACK,
|
||||
A_MENU_SELECT,
|
||||
A_MENU_START,
|
||||
|
|
|
@ -325,10 +325,10 @@ static void hall_of_fame_draw_name_entry(menu_t *menu, ui_pos_t anchor, vec2i_t
|
|||
c_first = 36;
|
||||
}
|
||||
|
||||
if (input_pressed(A_MENU_UP) || input_pressed(A_MENU_UP_2) || input_pressed(A_MENU_UP_3)) {
|
||||
if (input_pressed(A_MENU_UP)) {
|
||||
hs_char_index++;
|
||||
}
|
||||
else if (input_pressed(A_MENU_DOWN) || input_pressed(A_MENU_DOWN_2) || input_pressed(A_MENU_DOWN_3)) {
|
||||
else if (input_pressed(A_MENU_DOWN)) {
|
||||
hs_char_index--;
|
||||
}
|
||||
|
||||
|
|
|
@ -86,18 +86,18 @@ void menu_update(menu_t *menu) {
|
|||
int selected_data = 0;
|
||||
if (page->entries_len > 0) {
|
||||
if (flags_is(page->layout_flags, MENU_HORIZONTAL)) {
|
||||
if (input_pressed(A_MENU_LEFT) || input_pressed(A_MENU_LEFT_2) || input_pressed(A_MENU_LEFT_3)) {
|
||||
if (input_pressed(A_MENU_LEFT)) {
|
||||
page->index--;
|
||||
}
|
||||
else if (input_pressed(A_MENU_RIGHT) || input_pressed(A_MENU_RIGHT_2) || input_pressed(A_MENU_RIGHT_3)) {
|
||||
else if (input_pressed(A_MENU_RIGHT)) {
|
||||
page->index++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (input_pressed(A_MENU_UP) || input_pressed(A_MENU_UP_2) || input_pressed(A_MENU_UP_3)) {
|
||||
if (input_pressed(A_MENU_UP)) {
|
||||
page->index--;
|
||||
}
|
||||
if (input_pressed(A_MENU_DOWN) || input_pressed(A_MENU_DOWN_2) || input_pressed(A_MENU_DOWN_3)) {
|
||||
if (input_pressed(A_MENU_DOWN)) {
|
||||
page->index++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue