From 5130b54658ab03f3fc18727615b529d6e241566c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 12 Jan 2011 23:22:20 +0000 Subject: Fix menu navigation when using joystick / joypad (thanks AlexXav). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2237 --- src/m_menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/m_menu.c b/src/m_menu.c index 7b1c5a6e..efc4fefe 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1450,23 +1450,23 @@ boolean M_Responder (event_t* ev) if (ev->type == ev_joystick && joywait < I_GetTime()) { - if (ev->data3 == -1) + if (ev->data3 < 0) { key = key_menu_up; joywait = I_GetTime() + 5; } - else if (ev->data3 == 1) + else if (ev->data3 > 0) { key = key_menu_down; joywait = I_GetTime() + 5; } - if (ev->data2 == -1) + if (ev->data2 < 0) { key = key_menu_left; joywait = I_GetTime() + 2; } - else if (ev->data2 == 1) + else if (ev->data2 > 0) { key = key_menu_right; joywait = I_GetTime() + 2; -- cgit v1.2.3