legoEv3/evdev/__pycache__/device.cpython-35.pyc
ObU' @ s d d l Z d d l m Z d d l m Z d d l m Z m Z m Z m Z d d l m
Z
e d d d d d
d d g Z e d
d d g Z e d d d d d g Z
Gd d d e Z Gd d
d
e Z Gd d d e
Z Gd d d e Z d S) N)select)
namedtuple)_input_uinputecodesutil)
InputEventAbsInfovalueminmaxZfuzzZflatZ
resolutionKbdInforepeatZdelay
DeviceInfoZbustypeZvendorproductversionc @ s" e Z d Z d Z d d Z d S)r a
A ``namedtuple`` for storing absolut axis information -
corresponds to the ``input_absinfo`` struct:
**value**
Latest reported value for the axis.
**min**
Specifies minimum value for the axis.
**max**
Specifies maximum value for the axis.
**fuzz**
Specifies fuzz value that is used to filter noise from the
event stream.
**flat**
Values that are within this value will be discarded by joydev
interface and reported as 0 instead.
**resolution**
Specifies resolution for the values reported for the axis.
Resolution for main axes (``ABS_X, ABS_Y, ABS_Z``) is reported
in units per millimeter (units/mm), resolution for rotational
axes (``ABS_RX, ABS_RY, ABS_RZ``) is reported in units per
radian.
.. note: The input core does not clamp reported values to the
``[minimum, maximum]`` limits, such task is left to userspace.
c C s
d j | S)Nz0val {}, min {}, max {}, fuzz {}, flat {}, res {})format)self r ./usr/lib/python3/dist-packages/evdev/device.py__str__2 s zAbsInfo.__str__N)__name__
__module____qualname____doc__r r r r r r s c @ s" e Z d Z d Z d d Z d S)r
z
Keyboard repeat rate:
**repeat**
Keyboard repeat rate in characters per second.
**delay**
Amount of time that a key must be depressed before it will start
to repeat (in milliseconds).
c C s
d j | S)Nzrepeat {}, delay {})r )r r r r r B s zKbdInfo.__str__N)r r r r r r r r r r
6 s
c @ s e Z d Z d d Z d S)r c C s d } | j | S)Nz:bus: {:04x}, vendor {:04x}, product {:04x}, version {:04x})r )r msgr r r r G s zDeviceInfo.__str__N)r r r r r r r r r F s c @ s6 e Z d Z d Z d6 Z d
d Z d d
Z d d d Z d d d d Z d d d Z d d Z
d d Z d d Z d d Z
d d Z d d! Z d" d# Z d$ d% Z d&