mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
expo: Rename EXPOACT_POINT to EXPOACT_POINT_ITEM
At present we only support a single menu, so all that can be pointed to is the current menu item. Rename this action so that we can also add an action for pointing to an object. This will allow cycling through the objects in a scene. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -347,7 +347,7 @@ int scene_menu_send_key(struct scene *scn, struct scene_obj_menu *menu, int key,
|
||||
struct scene_menitem, sibling)) {
|
||||
item = list_entry(item->sibling.prev,
|
||||
struct scene_menitem, sibling);
|
||||
event->type = EXPOACT_POINT;
|
||||
event->type = EXPOACT_POINT_ITEM;
|
||||
event->select.id = item->id;
|
||||
log_debug("up to item %d\n", event->select.id);
|
||||
}
|
||||
@@ -356,7 +356,7 @@ int scene_menu_send_key(struct scene *scn, struct scene_obj_menu *menu, int key,
|
||||
if (!list_is_last(&item->sibling, &menu->item_head)) {
|
||||
item = list_entry(item->sibling.next,
|
||||
struct scene_menitem, sibling);
|
||||
event->type = EXPOACT_POINT;
|
||||
event->type = EXPOACT_POINT_ITEM;
|
||||
event->select.id = item->id;
|
||||
log_debug("down to item %d\n", event->select.id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user