Exemple #1
0
 def ReleaseAllButtons():
     #print("releasing all buttons")
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_1)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_2)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_3)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_4)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_UP)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_DOWN)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_LEFT)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_RIGHT)
     ArtificalKeyboard.ReleaseKey(GameControllerInputter.BUTTON_RB)
Exemple #2
0
 def ReleaseAllButtons(self):
     #print("releasing all buttons")
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_1])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_2])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_3])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_4])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_UP])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_DOWN])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_LEFT])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_RIGHT])
     ArtificalKeyboard.ReleaseKey(self.controls[Buttons.BUTTON_RB])
Exemple #3
0
 def ReleaseKeyIfActive(self, hexKeyCode):
     if (self.isTekkenActiveWindow):
         ArtificalKeyboard.ReleaseKey(hexKeyCode)
 def MashAccept(self): #Useful for Treasure Mode
     if self.gameState.IsForegroundPID():
         if (random.randint(0, 1) == 0):
             ArtificalKeyboard.PressKey(GameInputter.Keys.A)
         else:
             ArtificalKeyboard.ReleaseKey(GameInputter.Keys.A)