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
This commit is contained in:
parent
e3857ca43e
commit
dfdf63501e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue