def METHOD_NAME(self):
    self.log('Loading joystick definitions', 1)
    self.joydefs = []
    search = []
    userjoysticks = os.environ.get(
        'MAVPROXY_JOYSTICK_DIR',
        mp_util.dot_mavproxy('joysticks'))
    if userjoysticks is not None and os.path.isdir(userjoysticks):
        search.append(userjoysticks)
    search.append(pkg_resources.resource_filename(__name__, 'joysticks'))
    for path in search:
        self.log('Looking for joystick definitions in {}'.format(path),
                 2)
        path = os.path.expanduser(path)
        for dirpath, dirnames, filenames in os.walk(path):
            for joyfile in filenames:
                root, ext = os.path.splitext(joyfile)
                if ext[1:] not in ['yml', 'yaml', 'json']:
                    continue
                joypath = os.path.join(dirpath, joyfile)
                self.log('Loading definition from {}'.format(joypath), 2)
                with open(joypath, 'r') as fd:
                    joydef = yaml.safe_load(fd)
                    joydef['path'] = joypath
                    self.joydefs.append(joydef)