add LEGACY_TOUCHSCREEN support