From a76fd9535db9b36dd4d8f2e6bc9d804db807907f Mon Sep 17 00:00:00 2001 From: Paolo Iommarini Date: Sun, 17 Feb 2013 13:38:32 +0100 Subject: Maemo ehancement -Added command line options -Added pause on incoming call -Added change disc --- frontend/plugin_lib.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'frontend/plugin_lib.c') diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index a3dcbab..f045abb 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -582,8 +582,18 @@ static void update_input(void) in_keystate = actions[IN_BINDTYPE_PLAYER12]; } #else /* MAEMO */ +#include static void update_input(void) { + extern int g_maemo_opts; + extern int maemo_x11_update_keys(); + if (g_maemo_opts&8) + maemo_x11_update_keys(); + else{ + /* process GTK+ events */ + while (gtk_events_pending()) + gtk_main_iteration(); + } } #endif -- cgit v1.2.3 From 7010034e5499a82f96f9fb45e7be31789a3f63b9 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 18 Feb 2013 03:06:01 +0200 Subject: frontend: maemo: some refactoring --- frontend/plugin_lib.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'frontend/plugin_lib.c') diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index f045abb..72b3395 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -582,19 +582,7 @@ static void update_input(void) in_keystate = actions[IN_BINDTYPE_PLAYER12]; } #else /* MAEMO */ -#include -static void update_input(void) -{ - extern int g_maemo_opts; - extern int maemo_x11_update_keys(); - if (g_maemo_opts&8) - maemo_x11_update_keys(); - else{ - /* process GTK+ events */ - while (gtk_events_pending()) - gtk_main_iteration(); - } -} +extern void update_input(void); #endif void pl_update_gun(int *xn, int *yn, int *xres, int *yres, int *in) -- cgit v1.2.3