diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-21 08:02:23 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-21 08:02:23 +0000 |
| commit | a754dd84b82c9aa92e7b94d0154e67500607a6a7 (patch) | |
| tree | ea8f4865df30e90bdddebbe61f37aacbf19f0058 /apps/plugin.c | |
| parent | 69697aefe84f3e576daad595259a8dd16b00ea99 (diff) | |
| download | rockbox-a754dd84b82c9aa92e7b94d0154e67500607a6a7.zip rockbox-a754dd84b82c9aa92e7b94d0154e67500607a6a7.tar.gz rockbox-a754dd84b82c9aa92e7b94d0154e67500607a6a7.tar.bz2 rockbox-a754dd84b82c9aa92e7b94d0154e67500607a6a7.tar.xz | |
Added raw button reading functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4907 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 251d433..3cdc56c 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) { |