def bindKeys():
     keyboardmanager.bindKeyDown(
         scancode=scancode, keyname=keyname, text=text, help="", modifiers=modifiers, handler=keyDownPressed
     )
     if text == None:
         keyboardmanager.bindKeyUp(scancode=scancode, keyname=keyname, modifiers=modifiers, handler=keyUpPressed)
     else:
         self.statesRecords[1] = True
Esempio n. 2
0
 def bindKeys():
     keyboardmanager.bindKeyDown(scancode=scancode,
                                 keyname=keyname,
                                 text=text,
                                 help='',
                                 modifiers=modifiers,
                                 handler=keyDownPressed)
     if text == None:
         keyboardmanager.bindKeyUp(scancode=scancode,
                                   keyname=keyname,
                                   modifiers=modifiers,
                                   handler=keyUpPressed)
     else:
         self.statesRecords[1] = True
Esempio n. 3
0
 def bindKeys():
     keyboardmanager.bindKeyDown(keyString, keyDownPressed, '',
                                 modifiers)
     keyboardmanager.bindKeyUp(keyString, keyUpPressed, '', modifiers)
Esempio n. 4
0
 def bindKeys():
     keyboardmanager.bindKeyDown(keyString, keyDownPressed, '', modifiers)
     keyboardmanager.bindKeyUp(keyString, keyUpPressed, '', modifiers)