[Concept,20/23] expo: Enable the mouse when available

Message ID 20250915122905.1217249-21-sjg@u-boot.org
State New
Headers
Series expo: Support interactions with a mouse or touchpad |

Commit Message

Simon Glass Sept. 15, 2025, 12:28 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

When creating a new bootflow menu or cedit, enable the mouse, so the
user can interact with the expo more easily.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/bootflow_menu.c | 2 ++
 boot/cedit.c         | 2 ++
 2 files changed, 4 insertions(+)
  

Patch

diff --git a/boot/bootflow_menu.c b/boot/bootflow_menu.c
index dc075a8f4b2..602a2e33c88 100644
--- a/boot/bootflow_menu.c
+++ b/boot/bootflow_menu.c
@@ -51,6 +51,8 @@  int bootflow_menu_new(struct expo **expp)
 		return log_msg_ret("exp", ret);
 	expo_req_size(exp, 1366, 768);
 
+	expo_set_mouse_enable(exp, true);
+
 	ret = scene_new(exp, "main", MAIN, &scn);
 	if (ret < 0)
 		return log_msg_ret("scn", ret);
diff --git a/boot/cedit.c b/boot/cedit.c
index ab1a79c1412..ad2c98aa7a5 100644
--- a/boot/cedit.c
+++ b/boot/cedit.c
@@ -243,6 +243,8 @@  int cedit_run(struct expo *exp)
 		return log_msg_ret("prep", ret);
 	scene_id = ret;
 
+	expo_set_mouse_enable(exp, true);
+
 	exp->done = false;
 	exp->save = false;
 	do {