Lines Matching full:buttons
79 class Buttons: class
83 Describes the state of each of the buttons / "side switches" that
84 may be present on a stylus. Buttons set to 'None' indicate the
95 return Buttons(False, False, False)
168 self.buttons = Buttons.clear()
191 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None argument
199 :param buttons: stylus button state. Use ``None`` for unchanged.
206 if buttons is not None:
207 self.buttons = buttons
208 buttons = self.buttons
225 buttons.fill(report)
263 def event(self, x, y, pressure, buttons=None, toolid=None, proximity=None): argument
269 :param buttons: stylus button state. Use ``None`` for unchanged.
275 r = self.create_report(x, y, pressure, buttons, toolid, proximity)
387 an actual device. Position, eraser, pressure, barrel buttons.
641 buttons=Buttons.clear(),
686 Test that the barrel buttons (side switches) work as expected.
698 buttons=Buttons.clear(),
711 uhdev.event(100, 200, pressure=0, buttons=Buttons(primary=True)),
719 uhdev.event(100, 200, pressure=0, buttons=Buttons(primary=False)),
727 uhdev.event(100, 200, pressure=0, buttons=Buttons(secondary=True)),
735 uhdev.event(100, 200, pressure=0, buttons=Buttons(secondary=False)),
786 buttons=Buttons.clear(),