コード例 #1
0
 def __init__(self, udev, threshold, speedup, *args, **kwargs):
     SimpleDevice.__init__(self, *args, **kwargs)
     self.udev = udev # output device
     self.threshold = threshold  # if this the time between consecutive wheel events falls below this threshold, acceleration becomes active
     self.speedup = speedup # number of additional events to send
     self.olddir = 0
     self.oldtime = 0
コード例 #2
0
ファイル: forwarddevice.py プロジェクト: ismell/pyinputevent
 def __init__(self, udev, keymap, *args, **kwargs):
     SimpleDevice.__init__(self, *args, **kwargs)
     self.udev = udev # output device
     self.ctrl = False
     self.alt = False
     self.shift = False
     self.state = None
     self.doq = False # queue keystrokes for processing?
     self.mouseev = []
     self.keyev = []
     self.parser = KeymapParser(keymap)
コード例 #3
0
 def __init__(self, udev, *args, **kwargs):
     SimpleDevice.__init__(self, *args, **kwargs)
     self.udev = udev # output device
     self.ctrl = False
     self.alt = False
     self.shift = False
     self.state = None
     self.doq = False # queue keystrokes for processing?
     self.mouseev = []
     self.keyev = []
     self.parser = KeymapParser("keymap.txt")