+ return key;
+}
+
+/* SDL */
+#ifdef STANDALONE
+
+static unsigned char g_keystate[SDLK_LAST];
+
+static int do_event(SDL_Event *event, int timeout)
+{
+ int key, is_down;
+
+ key = omapsdl_input_get_event(&is_down, timeout);
+ if (key < 0)
+ return 0;
+