removed SDL 2.0 key symbols (using preprocessor) when compiling for SDL 1.2
[rocksndiamonds.git] / src / screens.c
index ad21972ceafc8d89c377d84bab1276dc86913785..1291b8ea9dacc8d010d869ddfba418de7ff98341 100644 (file)
@@ -7558,13 +7558,19 @@ boolean ConfigureVirtualButtonsMain()
 
            /* press 'Enter' to keep the existing key binding */
            if (key == KSYM_Return ||
+#if defined(TARGET_SDL2)
                key == KSYM_Menu ||
+#endif
                key == KSYM_space)
            {
              step_nr++;
            }
-           else if (key == KSYM_BackSpace ||
-                    key == KSYM_Back)
+           else if (key == KSYM_BackSpace
+#if defined(TARGET_SDL2)
+                    ||
+                    key == KSYM_Back
+#endif
+                    )
            {
              if (step_nr == 0)
              {