diff --git a/kivy/input/providers/__init__.py b/kivy/input/providers/__init__.py index 1b3ba1a3f..8e0b84d94 100644 --- a/kivy/input/providers/__init__.py +++ b/kivy/input/providers/__init__.py @@ -9,6 +9,7 @@ import os from kivy.utils import platform as core_platform from kivy.logger import Logger +from kivy.setupconfig import USE_SDL2 import kivy.input.providers.tuio import kivy.input.providers.mouse @@ -52,7 +53,7 @@ if platform == 'linux' or 'KIVY_DOC' in os.environ: err = 'Input: LinuxWacom is not supported by your version of linux' Logger.exception(err) -if platform == 'android' or 'KIVY_DOC' in os.environ: +if (platform == 'android' and not USE_SDL2) or 'KIVY_DOC' in os.environ: try: import kivy.input.providers.androidjoystick except: