Lines Matching +full:- +full:- +full:no +full:- +full:self +full:- +full:update
2 # -*- coding: utf-8
4 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
21 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
43 UPDATE = "UPDATE" variable in Slot.State
46 def __init__(self, index): argument
47 self._state = Slot.State.NONE
48 self.index = index
49 self.used = False
51 def begin(self): argument
52 assert self.state == Slot.State.NONE
53 self.state = Slot.State.BEGIN
55 def end(self): argument
56 assert self.state in (Slot.State.BEGIN, Slot.State.UPDATE)
57 self.state = Slot.State.END
59 def sync(self): argument
60 if self.state == Slot.State.BEGIN:
61 self.state = Slot.State.UPDATE
62 elif self.state == Slot.State.END:
63 self.state = Slot.State.NONE
66 def state(self): argument
67 return self._state
70 def state(self, newstate): argument
74 self.used = True
75 self._state = newstate
78 def is_active(self): argument
79 return self.state in (Slot.State.BEGIN, Slot.State.UPDATE)
81 def __str__(self): argument
82 return "+" if self.state in (Slot.State.BEGIN, Slot.State.UPDATE) else " "
88 "--use-st", action="store_true", help="Ignore slots, use the BTN_TOOL bits"
91 "path", metavar="recording", nargs=1, help="Path to libinput-record YAML file"
127 print("-" * len(header))
142 # single-touch formatting is simpler than multitouch, it'll just
163 if e.value == -1:
187 tdelta = int((t - last_time) / 1000) / 1000