示例#1
0
文件: touch.py 项目: duststorm/elopy
    def __init__(self,*args,**kwargs):
        
        #: The id of the display where the touch event occurred.
        self.display_id=None        
        
        #: x position of the Touch Device when the event occurred; in display coordinate space.
        self.x_position=None

        #: y position of the Touch Device when the event occurred; in display coordinate space.
        self.y_position=None
        
        #: Pressure being applied to the Touch Device when the event occurred.
        self.pressure=None

        DeviceEvent.__init__(self,*args,**kwargs)
示例#2
0
 def __init__(self, *args, **kwargs):
     kwargs['device_type'] = ioHub.devices.EventConstants.DEVICE_TYPES[
         'JOYSTICK_DEVICE']
     DeviceEvent.__init__(self, **kwargs)
示例#3
0
文件: __init__.py 项目: awood3/ioHub
 def __init__(self,*args,**kwargs):
     kwargs['device_type']=ioHub.devices.EventConstants.DEVICE_TYPES['JOYSTICK_DEVICE']
     DeviceEvent.__init__(self,**kwargs)