def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, self._event_names) self._frozen = False
def __init__(self): # There is only button-release to subscribe to currently, # as this is all CSButtonRemapper needs to detect the end of a click. EventSource.__init__(self, ["button-release"]) XIDeviceEventLogger.__init__(self) self._gtk_handler_ids = None self._device_manager = None self._master_device = None # receives enter/leave events self._master_device_id = None # for convenience/performance self._slave_devices = None # receive pointer and touch events self._slave_device_ids = None # for convenience/performance self._xi_grab_active = False self._xi_grab_events_selected = False self._xi_event_handled = False self._touch_active = set() # set of id(XIDevice/GdkX11DeviceXI2) # For devices not contained here only # pointer events are considered. # Wacom devices with enabled gestures never # become touch-active, i.e. they don't # generate touch events. self.connect("realize", self._on_realize_event) self.connect("unrealize", self._on_unrealize_event)
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, self._event_names) self._udev = None self._keyboard_device_detected = None
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, self._event_names) self._acpid_listener = None self._tablet_mode = None self._key_listener = None
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, self._event_names) self._state = {} self._frozen = False
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, self._event_names) self._device_manager = None self._keyboard_slave_devices = None
def __init__(self, keyboard): # There is only button-release to subscribe to currently, # as this is all CSButtonRemapper needs to detect the end of a click. EventSource.__init__(self, ["button-release"]) self._keyboard = keyboard self._device_manager = None self._keyboard_slave_devices = None
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, ["device-event"]) self._devices = {} self._osk_devices = osk.Devices(event_handler=self._device_event_handler) self.update_devices()
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, ["device-event"]) self._devices = {} self._osk_devices = None try: self._osk_devices = osk.Devices(event_handler = \ self._device_event_handler) except Exception as ex: _logger.warning("Failed to create osk.Devices: " + \ unicode_str(ex)) if self.is_valid(): self.update_devices()
def __init__(self): # There is only button-release to subscribe to currently, # as this is all CSButtonRemapper needs to detect the end of a click. EventSource.__init__(self, ["button-release"]) self._gtk_handler_ids = None self._device_manager = None self._master_device = None # receives enter/leave events self._master_device_id = None # for convenience/performance self._slave_devices = None # receive pointer and touch events self._slave_device_ids = None # for convenience/performance self._xi_grab_active = False self._xi_grab_events_selected = False self._xi_event_handled = False self.connect("realize", self._on_realize_event) self.connect("unrealize", self._on_unrealize_event)
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, ["device-event", "device-grab"]) self._devices = {} self._osk_devices = None try: self._osk_devices = osk.Devices(event_handler = \ self._on_device_event) except Exception as ex: _logger.warning("Failed to create osk.Devices: " + \ unicode_str(ex)) self._last_motion_device_id = None self._last_click_device_id = None self._last_device_blacklist_ids = [] self._grabbed_devices_ids = set() if self.is_valid(): self.update_devices()
def construct(self): """ Singleton constructor, runs only once. """ EventSource.__init__(self, ["device-event", "device-grab", "devices-updated"]) self._devices = {} self._osk_devices = None try: self._osk_devices = osk.Devices(event_handler = \ self._on_device_event) except Exception as ex: _logger.warning("Failed to create osk.Devices: " + \ unicode_str(ex)) self._last_motion_device_id = None self._last_click_device_id = None self._last_device_blacklist_ids = [] self._grabbed_devices_ids = set() if self.is_valid(): self.update_devices()