code: def _find_xinput(self):
          
          for dll in XINPUT_DLL_NAMES:
              try:
                  self.xinput = getattr(ctypes.windll, dll)
              except OSError:
                  pass
              else:
                  # We found an xinput driver
                  self.xinput_dll = dll
                  break
          else:
              # We didn't find an xinput library
              warn(
                  "No xinput driver dll found, gamepads not supported.",
                  RuntimeWarning)
docs: Find most recent xinput library.