+/*
+ * update with wait for a press, return bitfield of BTN_*
+ * only can use 1 drv here..
+ */
+int in_update_menu(void)
+{
+ int result = 0;
+#ifdef IN_EVDEV
+ void *data[IN_MAX_DEVS];
+ int i, count = 0;
+
+ for (i = 0; i < in_dev_count; i++) {
+ if (in_devices[i].probed)
+ data[count++] = in_devices[i].drv_data;
+ }
+
+ if (count == 0) {
+ /* don't deadlock, fail */
+ printf("input: failed to find devices to read\n");
+ exit(1);
+ }
+
+ result = in_evdev_update_menu(data, count);
+#else
+#error no menu read handlers
+#endif
+
+ return result;
+}
+