Example #1
0
 def keyReleaseEvent(self, event):
     button = LEUtils.keyboardButtonFromQtKey(event.key())
     if button:
         self.inputDevice.buttonUp(button)
Example #2
0
 def keyPressEvent(self, event):
     button = LEUtils.keyboardButtonFromQtKey(event.key())
     if button:
         self.inputDevice.buttonDown(button)