(input_device_dir='/dev/input')
return fns
List readable character devices in ``input_device_dir``.
List readable character devices in ``input_device_dir``.
List readable character devices in input_device_dir .
def list_devices(input_device_dir='/dev/input'):
    '''List readable character devices in ``input_device_dir``.'''

    fns = glob.glob('{}/event*'.format(input_device_dir))
    fns = list(filter(is_device, fns))

    return fns
def list_devices ( input_device_dir = '/dev/input' ) : fns = glob . glob ( '{}/event*' . format ( input_device_dir ) ) fns = list ( filter ( is_device , fns ) ) return fns