MAME never used SDL, although someone said that he had a working SDL version of MAME. IIRC, MAME always used DirectX since it changed from DOS to Windows as main development platform. However, I don't know if the old MAME32 used DirectX before the core changed to Windows.