Exemplo n.º 1
0
 def SetupHidThread(self, newDevicePath):
     #create thread
     self.thread = HIDThread(self.vendorString + " " + self.productString,
                             newDevicePath)
     self.thread.start()
     self.thread.SetStopCallback(self.StopCallback)
     self.thread.SetRawCallback(self.RawCallback)
Exemplo n.º 2
0
 def SetupHidThread(self, newDevicePath):
     #create thread
     self.thread = HIDThread(self.name, newDevicePath, self.name)
     self.thread.SetStopCallback(self.StopCallback)
     self.thread.SetRawCallback(self.RawCallback)
     self.thread.start()
     self.thread.WaitForInit()
     self.RequestVersion()
Exemplo n.º 3
0
 def SetupHidThread(self, newDevicePath):
     #create thread
     self.thread = HIDThread(self.vendorString + " " + self.productString, newDevicePath)
     self.thread.start()
     self.thread.SetStopCallback(self.StopCallback)
     if self.rawDataEvents:
         self.thread.SetRawCallback(self.RawCallback)
     else:
         self.thread.SetButtonCallback(self.ButtonCallback)
         self.thread.SetValueCallback(self.ValueCallback)
Exemplo n.º 4
0
 def SetupHidThread(self, newDevicePath):
     #create thread
     self.thread = HIDThread(self.name, newDevicePath, self.name)
     self.thread.start()
     self.thread.SetStopCallback(self.StopCallback)
     self.thread.SetButtonCallback(self.ButtonCallback)