diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-04-19 12:46:04 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-04-19 12:46:04 +0000 |
| commit | a10ff23fcf3651996c2687e9c10b0844a9f5dbe3 (patch) | |
| tree | d06987aab33a0d75581f6cbf4d940af4b84b9e8b /apps/plugin.c | |
| parent | 00b407b04f42ed65d18c7fa2834530078d51249c (diff) | |
| download | rockbox-a10ff23fcf3651996c2687e9c10b0844a9f5dbe3.zip rockbox-a10ff23fcf3651996c2687e9c10b0844a9f5dbe3.tar.gz rockbox-a10ff23fcf3651996c2687e9c10b0844a9f5dbe3.tar.bz2 rockbox-a10ff23fcf3651996c2687e9c10b0844a9f5dbe3.tar.xz | |
Touchscreen targets: switch to grid mode before launching a plugin and switch back to the original mode when leaving it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20738 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 087bf74..d1e9a79 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -756,9 +756,19 @@ int plugin_load(const char* plugin, const void* parameter) cpucache_invalidate(); oldbars = viewportmanager_set_statusbar(VP_SB_HIDE_ALL); + +#ifdef HAVE_TOUCHSCREEN + enum touchscreen_mode old_mode = touchscreen_get_mode(); + + touchscreen_set_mode(TOUCHSCREEN_BUTTON); +#endif rc = hdr->entry_point(parameter); +#ifdef HAVE_TOUCHSCREEN + touchscreen_set_mode(old_mode); +#endif + viewportmanager_set_statusbar(oldbars); button_clear_queue(); |