From dfdf63501e0ce5ed07828731483228ba5c9dee23 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Fri, 8 Mar 2019 16:20:07 -0800 Subject: minui: Fix the wrong move of the callback. The input_cb in ev_init() should be shared among the detected input devices. Test: Boot into recovery. Check key inputs. Change-Id: I0315f6a23625bacedd333fefacbf4ac6797bc1fd --- minui/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minui/events.cpp b/minui/events.cpp index 30f8d50a2..c95861036 100644 --- a/minui/events.cpp +++ b/minui/events.cpp @@ -97,7 +97,7 @@ int ev_init(ev_callback input_cb, bool allow_touch_inputs) { } ev_fdinfo[ev_count].fd = fd; - ev_fdinfo[ev_count].cb = std::move(input_cb); + ev_fdinfo[ev_count].cb = input_cb; ev_count++; ev_dev_count++; if (ev_dev_count == MAX_DEVICES) break; -- cgit v1.2.3