diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc
index 3e089bd122cb6c79b650e8fe63abe4cda0acfbb2..74bf8717d170806b5ef6abd5bf40adddc2d26901 100644 (file)
--- a/src/shared/a_modes.inc
+++ b/src/shared/a_modes.inc
{$UNDEF ENABLE_MENU}
{$DEFINE DISABLE_MENU}
{$ENDIF}
+ {$IFDEF ENABLE_TOUCH}
+ {$WARNING Touch screen in headless mode has no sense. Disabled.}
+ {$UNDEF ENABLE_TOUCH}
+ {$DEFINE DISABLE_TOUCH}
+ {$ENDIF}
{$ENDIF}
{$IF DEFINED(ENABLE_MENU) AND DEFINED(DISABLE_MENU)}
{$ENDIF}
{$ENDIF}
+{$IF DEFINED(ENABLE_TOUCH) AND DEFINED(DISABLE_TOUCH)}
+ {$ERROR Select ENABLE_TOUCH or DISABLE_TOUCH}
+{$ELSEIF NOT DEFINED(ENABLE_TOUCH) AND NOT DEFINED(DISABLE_TOUCH)}
+ // defaut ENABLE/DISABLE touch
+ {$IFDEF HEADLESS}
+ {$DEFINE DISABLE_TOUCH}
+ {$ELSE}
+ {$DEFINE ENABLE_TOUCH}
+ {$ENDIF}
+{$ENDIF}
+
{$IF DEFINED(USE_SYSSTUB)}
{$IF DEFINED(USE_SDL) OR DEFINED(USE_SDL2)}
{$ERROR Only one system driver must be selected!}