menu_find_id

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).

Syntax

native menu_find_id(menu, page, key)

Usage

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.

Errors

Invalid menu resource.

Defined in newmenus.inc at line 209 . This documentation was automatically generated from source.