Пример #1
0
 def keyReleaseEvent(self, event):
     button = LEUtils.keyboardButtonFromQtKey(event.key())
     if button:
         self.inputDevice.buttonUp(button)
Пример #2
0
 def keyPressEvent(self, event):
     button = LEUtils.keyboardButtonFromQtKey(event.key())
     if button:
         self.inputDevice.buttonDown(button)