Module Expr Str Import alias ImportFrom alias alias alias alias alias alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str BinOpMult NameLoad NameLoad TupleLoad Str NameLoad TupleLoad Str BinOpMult NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call NameLoad NameLoad ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Return Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Return Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign NameStore Call NameLoad If CompareLtE Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Num Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Return Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Return Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If BoolOpOr CompareLt NameLoad Num CompareGtE NameLoad NameLoad body Raise Call NameLoad Str Return Call NameLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num body Return Return AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If BoolOpOr CompareLt NameLoad Num CompareGtE NameLoad NameLoad body Raise Call NameLoad Str Return SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad decorator_list decorator_list
N/A N/A 
Python mtdev
============

The mtdev module provides Python bindings to the `Kernel multi-touch
transformation library <https://launchpad.net/mtdev>`_, also known as mtdev
(MIT license).

The mtdev library transforms all variants of kernel MT events to the
slotted type B protocol. The events put into mtdev may be from any MT
device, specifically type A without contact tracking, type A with
contact tracking, or type B with contact tracking. See the kernel
documentation for further details.

.. warning::

    This is an external library and Kivy does not provide any support for it.
    It might change in the future and we advise you don't rely on it in your
    code.
 N/A os ctypes cdll Structure c_ulong c_int c_ushort c_void_p pointer POINTER byref N/A libmtdev N/A N/A cdll LoadLibrary libmtdev.so.1 N/A MTDEV_CODE_SLOT 47 N/A MTDEV_CODE_TOUCH_MAJOR 48 N/A MTDEV_CODE_TOUCH_MINOR 49 N/A MTDEV_CODE_WIDTH_MAJOR 50 N/A MTDEV_CODE_WIDTH_MINOR 51 N/A MTDEV_CODE_ORIENTATION 52 N/A MTDEV_CODE_POSITION_X 53 N/A MTDEV_CODE_POSITION_Y 54 N/A MTDEV_CODE_TOOL_TYPE 55 N/A MTDEV_CODE_BLOB_ID 56 N/A MTDEV_CODE_TRACKING_ID 57 N/A MTDEV_CODE_PRESSURE 58 N/A MTDEV_CODE_ABS_X 0 N/A MTDEV_CODE_ABS_Y 1 N/A MTDEV_CODE_ABS_Z 2 N/A MTDEV_CODE_BTN_DIGI 320 N/A MTDEV_CODE_BTN_TOOL_PEN 320 N/A MTDEV_CODE_BTN_TOOL_RUBBER 321 N/A MTDEV_CODE_BTN_TOOL_BRUSH 322 N/A MTDEV_CODE_BTN_TOOL_PENCIL 323 N/A MTDEV_CODE_BTN_TOOL_AIRBRUSH 324 N/A MTDEV_CODE_BTN_TOOL_FINGER 325 N/A MTDEV_CODE_BTN_TOOL_MOUSE 326 N/A MTDEV_CODE_BTN_TOOL_LENS 327 N/A MTDEV_CODE_BTN_TOUCH 330 N/A MTDEV_CODE_BTN_STYLUS 331 N/A MTDEV_CODE_BTN_STYLUS2 332 N/A MTDEV_CODE_BTN_TOOL_DOUBLETAP 333 N/A MTDEV_CODE_BTN_TOOL_TRIPLETAP 334 N/A MTDEV_CODE_BTN_TOOL_QUADTAP 335 N/A MTDEV_TYPE_EV_ABS 3 N/A MTDEV_TYPE_EV_SYN 0 N/A MTDEV_TYPE_EV_KEY 1 N/A MTDEV_TYPE_EV_REL 2 N/A MTDEV_TYPE_EV_ABS 3 N/A MTDEV_TYPE_EV_MSC 4 N/A MTDEV_TYPE_EV_SW 5 N/A MTDEV_TYPE_EV_LED 17 N/A MTDEV_TYPE_EV_SND 18 N/A MTDEV_TYPE_EV_REP 20 N/A MTDEV_TYPE_EV_FF 21 N/A MTDEV_TYPE_EV_PWR 22 N/A MTDEV_TYPE_EV_FF_STATUS 23 N/A MTDEV_ABS_TRACKING_ID 9 N/A MTDEV_ABS_POSITION_X 5 N/A MTDEV_ABS_POSITION_Y 6 N/A MTDEV_ABS_TOUCH_MAJOR 0 N/A MTDEV_ABS_TOUCH_MINOR 1 N/A MTDEV_ABS_WIDTH_MAJOR 2 N/A MTDEV_ABS_WIDTH_MINOR 3 N/A MTDEV_ABS_ORIENTATION 4 N/A MTDEV_ABS_SIZE 11 timeval N/A Structure N/A N/A _fields_ N/A N/A tv_sec c_ulong N/A tv_usec c_ulong N/A input_event N/A Structure N/A N/A _fields_ N/A N/A time timeval N/A type c_ushort N/A code c_ushort N/A value c_int N/A input_absinfo N/A Structure N/A N/A _fields_ N/A N/A value c_int N/A minimum c_int N/A maximum c_int N/A fuzz c_int N/A flat c_int N/A resolution c_int N/A mtdev_caps N/A Structure N/A N/A _fields_ N/A N/A has_mtdata c_int N/A has_slot c_int N/A has_abs N/A c_int MTDEV_ABS_SIZE N/A slot input_absinfo N/A abs N/A input_absinfo MTDEV_ABS_SIZE N/A mtdev N/A Structure N/A N/A _fields_ N/A N/A caps mtdev_caps N/A state c_void_p N/A N/A mtdev_open N/A libmtdev mtdev_open N/A N/A mtdev_open argtypes N/A N/A POINTER mtdev c_int N/A mtdev_get N/A libmtdev mtdev_get N/A N/A mtdev_get argtypes N/A N/A POINTER mtdev c_int N/A POINTER input_event c_int N/A mtdev_idle N/A libmtdev mtdev_idle N/A N/A mtdev_idle argtypes N/A N/A POINTER mtdev c_int c_int N/A mtdev_close N/A libmtdev mtdev_close N/A N/A mtdev_close argtypes N/A N/A POINTER mtdev Device N/A N/A __init__ N/A N/A self filename N/A N/A N/A N/A self _filename filename N/A N/A self _fd -1 N/A N/A self _device N/A mtdev N/A N/A self _fd N/A N/A os open filename N/A N/A os O_NONBLOCK N/A os O_RDONLY N/A ret N/A mtdev_open N/A pointer N/A self _device N/A self _fd N/A N/A ret 0 N/A N/A N/A N/A os close N/A self _fd N/A N/A self _fd -1 N/A N/A Exception Unable to open device N/A close N/A N/A self N/A N/A N/A Close the mtdev converter
         N/A N/A N/A self _fd -1 N/A N/A N/A N/A mtdev_close N/A POINTER N/A self _device N/A N/A N/A os close N/A self _fd N/A N/A self _fd -1 N/A idle N/A N/A self ms N/A N/A N/A Check state of kernel device
        
        :Parameters:
            `ms` : int
                Number of milliseconds to wait for activity

        :Return:
            Return True if the device is idle, i.e, there are no fetched events
            in the pipe and there is nothing to fetch from the device.
         N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A N/A bool N/A mtdev_idle N/A pointer N/A self _device N/A self _fd ms N/A get N/A N/A self N/A N/A N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A ev N/A input_event N/A N/A N/A mtdev_get N/A pointer N/A self _device N/A self _fd N/A byref ev 1 0 N/A N/A None N/A ev N/A has_mtdata N/A N/A self N/A N/A N/A Return True if the device has multitouch data.
         N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A N/A bool N/A N/A N/A self _device caps has_mtdata N/A has_slot N/A N/A self N/A N/A N/A Return True if the device has slot information.
         N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A N/A bool N/A N/A N/A self _device caps has_slot N/A has_abs N/A N/A self index N/A N/A N/A Return True if the device has abs data.

        :Parameters:
            `index` : int
                One of const starting with a name ABS_MT_
         N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A N/A N/A index 0 N/A index MTDEV_ABS_SIZE N/A N/A N/A IndexError Invalid index N/A N/A bool N/A N/A N/A N/A self _device caps has_abs N/A index N/A get_max_abs N/A N/A self N/A N/A N/A Return the maximum number of abs information available.
         N/A MTDEV_ABS_SIZE N/A get_slot N/A N/A self N/A N/A N/A Return the slot data.
         N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A N/A N/A N/A N/A self _device caps has_slot 0 N/A N/A N/A N/A N/A N/A self _device caps slot N/A get_abs N/A N/A self index N/A N/A N/A Return the abs data.

        :Parameters:
            `index` : int
                One of const starting with a name ABS_MT_
         N/A N/A N/A self _fd -1 N/A N/A N/A Exception Device closed N/A N/A N/A index 0 N/A index MTDEV_ABS_SIZE N/A N/A N/A IndexError Invalid index N/A N/A N/A N/A N/A self _device caps abs N/A index N/A N/A