From a754dd84b82c9aa92e7b94d0154e67500607a6a7 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 21 Jul 2004 08:02:23 +0000 Subject: Added raw button reading functionality git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4907 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 7 ++++++- apps/plugin.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index 251d433d76..3cdc56ceb4 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -253,6 +253,8 @@ static const struct plugin_api rockbox_api = { #endif settings_parseline, strcmp, + button_status, + button_clear_queue, }; int plugin_load(char* plugin, void* parameter) @@ -332,7 +334,10 @@ int plugin_load(char* plugin, void* parameter) plugin_loaded = true; rc = plugin_start((struct plugin_api*) &rockbox_api, parameter); - /* explicitly casting the pointer here to avoid touching every plugin. */ + /* explicitly casting the pointer here to avoid touching every plugin. */ + + button_clear_queue(); + plugin_loaded = false; switch (rc) { diff --git a/apps/plugin.h b/apps/plugin.h index c2243a59fb..b93d406498 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -289,6 +289,8 @@ struct plugin_api { #endif bool (*settings_parseline)(char* line, char** name, char** value); int (*strcmp)(const char *, const char *); + int (*button_status)(void); + void (*button_clear_queue)(void); }; /* defined by the plugin loader (plugin.c) */ -- cgit v1.2.3