summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer_Split/src/eventhandler.hcc
diff options
context:
space:
mode:
Diffstat (limited to 'Graphic_Equalizer_Split/src/eventhandler.hcc')
-rw-r--r--Graphic_Equalizer_Split/src/eventhandler.hcc15
1 files changed, 13 insertions, 2 deletions
diff --git a/Graphic_Equalizer_Split/src/eventhandler.hcc b/Graphic_Equalizer_Split/src/eventhandler.hcc
index e1f90ae..0be1f5a 100644
--- a/Graphic_Equalizer_Split/src/eventhandler.hcc
+++ b/Graphic_Equalizer_Split/src/eventhandler.hcc
@@ -69,8 +69,10 @@ void eventhandler_main(audiodata_t *audiodata, events_t *events, mousedata_t *mo
unsigned 4 equalizer_mode_local;
unsigned 1 newmaskupdate;
+#if (!HAVE_VISUALIZATION_ONLY || BUILD_ALL)
load_preset(LOAD_PRESET_RESET, equalizer_levels.write);
reload_equalizer(events, &equalizer_levels.write[preset_offset]);
+#endif
while (TRUE) {
maskupdate_notification ? newmaskupdate;
@@ -86,8 +88,12 @@ void eventhandler_main(audiodata_t *audiodata, events_t *events, mousedata_t *mo
* any press returns to the application.
*/
if (MODE_GRAPH == events->mode) {
+#if (HAVE_GRAPHIC_VISUALIZATION_ONLY)
+ //RC200Reconfigure(SMARTMEDIA_ADDRESS_APP_GE);
+#else
events->mode = MODE_SKIN;
events->mask = 0;
+#endif
} else {
delay;
}
@@ -98,12 +104,16 @@ void eventhandler_main(audiodata_t *audiodata, events_t *events, mousedata_t *mo
if (MODE_GRAPH == events->mode) {
events->mode = MODE_SKIN;
} else {
+#if (HAVE_GRAPHIC_VISUALIZATION_ONLY)
+ //RC200Reconfigure(SMARTMEDIA_ADDRESS_APP_GRAPH);
+#else
events->mode = MODE_GRAPH;
+#endif
}
} else {
delay;
}
-
+#if (!HAVE_GRAPHIC_VISUALIZATION_ONLY || BUILD_ALL)
/*
* If the current mask equals the help button
* we set display mode to help.
@@ -229,6 +239,7 @@ void eventhandler_main(audiodata_t *audiodata, events_t *events, mousedata_t *mo
delay;
}
+
if ((AREA_EQUALIZER_MIN <= events->mask) && (events->mask <= AREA_EQUALIZER_MAX)) {
if (EQUALIZERMODE_PRECISE == events->equalizer_mode) {
@@ -296,7 +307,7 @@ void eventhandler_main(audiodata_t *audiodata, events_t *events, mousedata_t *mo
} else {
delay;
}
-
+#endif
break;
default: