def getDefaultRcType(self): data = iRcTypeControl.getBoxType() for x in self.defaultRcList: if x[0] in data: self.defaultRcType = x[1] break if self.defaultRcType == 0: self.defaultRcType = iRcTypeControl.readRcType()
def getDefaultRcType(self): data = iRcTypeControl.getBoxType() for x in self.defaultRcList: if x[0] in data: self.defaultRcType = x[1] break # If there is none in the list, use the current value... # if self.defaultRcType == 0: self.defaultRcType = iRcTypeControl.readRcType()
def getDefaultRcType(self): boxtype = getMachineBuild() procBoxtype = iRcTypeControl.getBoxType() print("[InputDevice] procBoxtype = %s, self.boxType = %s" % (procBoxtype, boxtype)) for x in self.defaultRcList: if x[0] in boxtype or x[0] in procBoxtype: self.defaultRcType = x[1] break # If there is none in the list, use the current value... # if self.defaultRcType == 0: self.defaultRcType = iRcTypeControl.readRcType()
def getDefaultRcType(self): self.defaultRcType = int(getRCType()) if self.defaultRcType == 0: self.defaultRcType = iRcTypeControl.readRcType()