1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-25 20:41:16 +02:00

expo: Implement the keypress logic for popup menus

In 'popup' mode, the expo allows moving around the objects in a scene.
When 'enter' is pressed on a menu, it opens and the user can move around
the items in the menu.

Implement this using keypress handles and actions.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-06-01 10:22:59 -06:00
committed by Tom Rini
parent 4c87e073a4
commit 4e64beeba7
4 changed files with 96 additions and 4 deletions

View File

@@ -16,14 +16,21 @@ struct udevice;
* enum expoact_type - types of actions reported by the expo
*
* @EXPOACT_NONE: no action
* @EXPOACT_POINT_OBJ: object was highlighted (@id indicates which)
* @EXPOACT_POINT_ITEM: menu item was highlighted (@id indicates which)
* @EXPOACT_SELECT: menu item was selected (@id indicates which)
* @EXPOACT_OPEN: menu was opened, so an item can be selected (@id indicates
* which menu object)
* @EXPOACT_CLOSE: menu was closed (@id indicates which menu object)
* @EXPOACT_QUIT: request to exit the menu
*/
enum expoact_type {
EXPOACT_NONE,
EXPOACT_POINT_OBJ,
EXPOACT_POINT_ITEM,
EXPOACT_SELECT,
EXPOACT_OPEN,
EXPOACT_CLOSE,
EXPOACT_QUIT,
};