diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index a0d68af510..1c7f969c02 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 531c9af4cb..098e98e5b7 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