예제 #1
0
	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()
예제 #2
0
	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()
예제 #3
0
	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()
예제 #4
0
	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()
예제 #5
0
    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()
예제 #6
0
	def getDefaultRcType(self):
		self.defaultRcType = int(getRCType())
		if self.defaultRcType == 0:
			self.defaultRcType = iRcTypeControl.readRcType()