native

menu_find_id

Syntax

native menu_find_id(menu, page, key);

Description

Given a page on a menu and a keypress on that page, returns the item id selected.
If the item is less than 0, a special option was chosen (such as MENU_EXIT).

Parameters

menu Menu resource identifier.
page Page on the menu.
key Key pressed (from 1 to 10).

Return

Item identifier, or <0 for a special selection code.

Error

Invalid menu resource.