diff options
| author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-02-11 23:10:09 +0000 |
|---|---|---|
| committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-02-11 23:10:09 +0000 |
| commit | 726088f9e64d799b7f2911f34fc5fb6db269be2e (patch) | |
| tree | 64bc1be4ea75a58eba5214584c61ee7efd4d38ef /apps/plugins | |
| parent | 05577e48a876bc3e6304c0b2c8459786738fc425 (diff) | |
| download | rockbox-726088f9e64d799b7f2911f34fc5fb6db269be2e.zip rockbox-726088f9e64d799b7f2911f34fc5fb6db269be2e.tar.gz rockbox-726088f9e64d799b7f2911f34fc5fb6db269be2e.tar.bz2 rockbox-726088f9e64d799b7f2911f34fc5fb6db269be2e.tar.xz | |
fft plugin: add touchscreen key-mapping and enable plugin for touchscreen targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24611 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/SUBDIRS | 2 | ||||
| -rw-r--r-- | apps/plugins/fft/fft.c | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index a0d68af..1c7f969 100644 --- a/apps/plugins/SUBDIRS +++ b/apps/plugins/SUBDIRS @@ -19,7 +19,7 @@ rockboy #ifdef HAVE_TAGCACHE pictureflow #endif -#if CONFIG_CODEC == SWCODEC && !defined(HAVE_TOUCHSCREEN) +#if (CONFIG_CODEC == SWCODEC) fft #endif chessbox diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index 531c9af..098e98e 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c @@ -182,6 +182,27 @@ GREY_INFO_STRUCT #error No keymap defined! #endif +#ifdef HAVE_TOUCHSCREEN +#ifndef FFT_PREV_GRAPH +# define FFT_PREV_GRAPH BUTTON_MIDLEFT +#endif +#ifndef FFT_NEXT_GRAPH +# define FFT_NEXT_GRAPH BUTTON_MIDRIGHT +#endif +#ifndef FFT_ORIENTATION +# define FFT_ORIENTATION BUTTON_CENTER +#endif +#ifndef FFT_WINDOW +# define FFT_WINDOW BUTTON_TOPLEFT +#endif +#ifndef FFT_SCALE +# define FFT_SCALE BUTTON_TOPRIGHT +#endif +#ifndef FFT_QUIT +# define FFT_QUIT BUTTON_BOTTOMLEFT +#endif +#endif + #ifdef HAVE_LCD_COLOR #include "pluginbitmaps/fft_colors.h" #endif |