static int menu_key_state = 0;
static int menu_last_used_dev = 0;
static int menu_key_prev = 0;
-static int menu_key_mask = 0;
static int menu_key_repeat = 0;
#define DRV(id) in_drivers[id]
ret = menu_key_state;
if (ret == 0)
- menu_key_mask = menu_key_prev = 0;
- else if (ret != menu_key_prev)
- menu_key_mask = menu_key_prev;
+ menu_key_prev = 0;
return ret;
}
else
menu_key_repeat++;
wait = -1;
- /* mask away all old keys if an additional new key is pressed */
- /* XXX what if old and new keys share bits (PBTN_CHAR)? */
- ret &= ~menu_key_mask;
} while (!(ret & interesting));
/* we don't need diagonals in menus */