summaryrefslogtreecommitdiffstats
path: root/minui/include
diff options
context:
space:
mode:
authorJack Wu <wjack@google.com>2021-09-27 11:47:36 +0200
committerJack Wu <wjack@google.com>2022-01-25 11:02:50 +0100
commit90b94b72ffb6b309ef3f23273083456e7e27455b (patch)
tree5b4bd3807dc65d0d083ea88fab46c66445db7e35 /minui/include
parentminui: Add support for multiple connectors (diff)
downloadandroid_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.tar
android_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.tar.gz
android_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.tar.bz2
android_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.tar.lz
android_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.tar.xz
android_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.tar.zst
android_bootable_recovery-90b94b72ffb6b309ef3f23273083456e7e27455b.zip
Diffstat (limited to 'minui/include')
-rw-r--r--minui/include/minui/minui.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h
index 6a762b6a5..a2f62f0a6 100644
--- a/minui/include/minui/minui.h
+++ b/minui/include/minui/minui.h
@@ -162,6 +162,7 @@ struct input_event;
using ev_callback = std::function<int(int fd, uint32_t epevents)>;
using ev_set_key_callback = std::function<int(int code, int value)>;
+using ev_set_sw_callback = std::function<int(int code, int value)>;
int ev_init(ev_callback input_cb, bool allow_touch_inputs = false);
void ev_exit();
@@ -169,6 +170,7 @@ int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb);
void ev_iterate_available_keys(const std::function<void(int)>& f);
void ev_iterate_touch_inputs(const std::function<void(int)>& action);
int ev_sync_key_state(const ev_set_key_callback& set_key_cb);
+int ev_sync_sw_state(const ev_set_sw_callback& set_sw_cb);
// 'timeout' has the same semantics as poll(2).
// 0 : don't block