Ejemplo n.º 1
0
 def onButtonDown(self, cursor, button):
     Element.onButtonDown(self, cursor, button)
     if button == cursor.buttonPrimary:
         self.pressed = True
         self.released = False
Ejemplo n.º 2
0
 def onButtonDown(self, cursor, button):
     Element.onButtonDown(self, cursor, button)
     if button == cursor.buttonPrimary:
         self.onState()