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/fft/fft.c | |
parent | 05577e48a876bc3e6304c0b2c8459786738fc425 (diff) | |
download | rockbox-726088f9e64d799b7f2911f34fc5fb6db269be2e.tar.gz rockbox-726088f9e64d799b7f2911f34fc5fb6db269be2e.zip |
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/fft/fft.c')
-rw-r--r-- | apps/plugins/fft/fft.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index 531c9af4cb..098e98e5b7 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c | |||
@@ -182,6 +182,27 @@ GREY_INFO_STRUCT | |||
182 | #error No keymap defined! | 182 | #error No keymap defined! |
183 | #endif | 183 | #endif |
184 | 184 | ||
185 | #ifdef HAVE_TOUCHSCREEN | ||
186 | #ifndef FFT_PREV_GRAPH | ||
187 | # define FFT_PREV_GRAPH BUTTON_MIDLEFT | ||
188 | #endif | ||
189 | #ifndef FFT_NEXT_GRAPH | ||
190 | # define FFT_NEXT_GRAPH BUTTON_MIDRIGHT | ||
191 | #endif | ||
192 | #ifndef FFT_ORIENTATION | ||
193 | # define FFT_ORIENTATION BUTTON_CENTER | ||
194 | #endif | ||
195 | #ifndef FFT_WINDOW | ||
196 | # define FFT_WINDOW BUTTON_TOPLEFT | ||
197 | #endif | ||
198 | #ifndef FFT_SCALE | ||
199 | # define FFT_SCALE BUTTON_TOPRIGHT | ||
200 | #endif | ||
201 | #ifndef FFT_QUIT | ||
202 | # define FFT_QUIT BUTTON_BOTTOMLEFT | ||
203 | #endif | ||
204 | #endif | ||
205 | |||
185 | #ifdef HAVE_LCD_COLOR | 206 | #ifdef HAVE_LCD_COLOR |
186 | #include "pluginbitmaps/fft_colors.h" | 207 | #include "pluginbitmaps/fft_colors.h" |
187 | #endif | 208 | #endif |